|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.dominate.groups.EntityGroup<I,T>
I - T - public class EntityGroup<I extends Serializable,T extends Entity<I>>
Represents a group of entities that satisfies a specification.
| Constructor Summary | |
|---|---|
EntityGroup(Repository<I,T> rep,
Specification<T> spec,
String description)
Construct a group given a repository and a specification. |
|
EntityGroup(Specification<T> spec,
String description)
Construct a group given a specification. |
|
| Method Summary | |
|---|---|
boolean |
add(T toBeAdded)
Add an entity to this group. |
boolean |
contains(T e)
Check if this group contains an entity. |
String |
getDescription()
Retrieves the description of this group |
T |
getMember(int index)
Retrieves a member of the group. |
List<T> |
list()
Retrieves all the members of this group. |
int |
size()
Return the number of members contained in this group |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityGroup(Repository<I,T> rep,
Specification<T> spec,
String description)
rep - the repository from which the entities will be loadedspec - the specification that must be satisfied by the members of this groupdescription - the description of this group
public EntityGroup(Specification<T> spec,
String description)
add(Entity).
spec - the specification that must be satisfied by the members of this groupdescription - the description of this group| Method Detail |
|---|
public T getMember(int index)
index - the index of the member in the list returned by list()
public boolean contains(T e)
e - the entity to be checked
public int size()
public List<T> list()
public boolean add(T toBeAdded)
toBeAdded - the entity to be added to this group
public String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||