|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.db.SortedGroupable.Adapter<T>
public static class SortedGroupable.Adapter<T extends Tag>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.db.SortedGroupable |
|---|
SortedGroupable.Adapter<T extends Tag> |
| Constructor Summary | |
|---|---|
SortedGroupable.Adapter()
|
|
| Method Summary | |
|---|---|
boolean |
add(T group)
the given group is appended to the list of groups |
List<T> |
getSortedGroups()
lists all groups that this instance is currently a member of while ordering them by relevance. |
Collection<T> |
getTags()
lists all groups that this instance is currently a member of (the data is essentially derived from a set) |
boolean |
insertAt(T group,
int index)
inserts the given group at the given index |
boolean |
isTagged(T group)
allows to determine the membership of the given tag or group |
boolean |
remove(T group)
terminates the membership of this instance to the given group |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedGroupable.Adapter()
| Method Detail |
|---|
public boolean add(T group)
throws IllegalArgumentException
SortedGroupable
add in interface SortedGroupable<T extends Tag>add in interface Taggable<T extends Tag>group - the Group object that this instance is to become a member of
IllegalArgumentException - if this instance cannot be part of the given grouppublic Collection<T> getTags()
Taggable
getTags in interface Taggable<T extends Tag>public boolean isTagged(T group)
Taggable
isTagged in interface Taggable<T extends Tag>public boolean remove(T group)
Taggable
remove in interface Taggable<T extends Tag>group - the Group that this instance is to be removed from as a member
public boolean insertAt(T group,
int index)
SortedGroupable
insertAt in interface SortedGroupable<T extends Tag>public List<T> getSortedGroups()
SortedGroupable
getSortedGroups in interface SortedGroupable<T extends Tag>
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||