|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.support.AbstractArgumentChecker
org.schmant.arg.EntityAndAbsoluteLocation
public class EntityAndAbsoluteLocation
This object combines an uninterpreted EntityView
and an
AbsoluteLocation
. It is use for instance when adding
files and directories to a Zip archive to add the entity together with
information about where it should be put in the archive.
Constructor Summary | |
---|---|
EntityAndAbsoluteLocation(Object d,
Object l)
Create an entity and absolute location combination. |
Method Summary | |
---|---|
static List<EntityAndAbsoluteLocation> |
decorateCollection(Collection<?> c,
Object l)
Create a list of EntityAndAbsoluteLocation for the entities in
the supplied collection. |
Object |
getEntity()
Get the entity. |
Object |
getLocation()
Get the location. |
String |
toString()
|
Methods inherited from class org.schmant.support.AbstractArgumentChecker |
---|
check, check, check, check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityAndAbsoluteLocation(Object d, Object l)
d
- An uninterpreted entity.l
- An uninterpreted absolute location.Method Detail |
---|
public Object getEntity()
public Object getLocation()
public static List<EntityAndAbsoluteLocation> decorateCollection(Collection<?> c, Object l)
EntityAndAbsoluteLocation
for the entities in
the supplied collection.
c
- A collection of objects that can be interpreted as entities.l
- An object that can be interpreted as an absolute location.
EntityAndAbsoluteLocation
objects. The list is
sorted in the order that objects are returned when iterating over the
supplied collection.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |