|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Taggable<T extends Tag>
represents an object that can be a member of several groups
| Nested Class Summary | |
|---|---|
static class |
Taggable.Adapter<T extends Tag>
|
| Method Summary | |
|---|---|
boolean |
add(T tag)
makes this instance member of the given group |
Collection<T> |
getTags()
lists all groups that this instance is currently a member of (the data is essentially derived from a set) |
boolean |
isTagged(T tag)
allows to determine the membership of the given tag or group |
boolean |
remove(T tag)
terminates the membership of this instance to the given group |
| Method Detail |
|---|
boolean add(T tag)
throws IllegalArgumentException
tag - the Group object that this instance is to become a member of
IllegalArgumentException - if this instance cannot be part of the given groupboolean remove(T tag)
tag - the Group that this instance is to be removed from as a member
Collection<T> getTags()
boolean isTagged(T tag)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||