|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortedGroupable<T extends Tag>
same as a Groupable, except this one also supports a stable order of groups, meaning the groups are prioritized. Here, the groups must be maintained as a list (still with unique elements) as opposed to a set.
| Nested Class Summary | |
|---|---|
static class |
SortedGroupable.Adapter<T extends Tag>
|
| 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. |
boolean |
insertAt(T group,
int index)
inserts the given group at the given index |
| Methods inherited from interface com.antelmann.db.Taggable |
|---|
getTags, isTagged, remove |
| Method Detail |
|---|
boolean insertAt(T group,
int index)
List<T> getSortedGroups()
boolean add(T group)
throws IllegalArgumentException
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 group
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||