|
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.Taggable.Adapter<T>
public static class Taggable.Adapter<T extends Tag>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.db.Taggable |
|---|
Taggable.Adapter<T extends Tag> |
| Constructor Summary | |
|---|---|
Taggable.Adapter()
|
|
| Method Summary | |
|---|---|
boolean |
add(T tag)
makes this instance member of the given group |
boolean |
addAll(Collection<T> col)
|
void |
clear()
|
boolean |
equals(Object obj)
|
Collection<T> |
getTags()
lists all groups that this instance is currently a member of (the data is essentially derived from a set) |
String[] |
getTagStrings()
provides a sorted array of the tag names |
static String[] |
getTagStrings(Taggable<?> t)
provides a sorted array of the tag names |
int |
hashCode()
|
boolean |
isTagged(T tag)
allows to determine the membership of the given tag or group |
Iterator<T> |
iterator()
|
boolean |
remove(T tag)
terminates the membership of this instance to the given group |
void |
setAllFrom(Taggable<T> t)
copies the properties of the given object and applies them to this instance, so that its behavior in regards to the given object can be matched to the extend that the implementing class supports that behavior. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Taggable.Adapter()
| Method Detail |
|---|
public boolean add(T tag)
throws IllegalArgumentException
Taggable
add in interface Taggable<T extends Tag>tag - the Group object that this instance is to become a member of
IllegalArgumentException - if this instance cannot be part of the given grouppublic int size()
public void clear()
public boolean addAll(Collection<T> col)
public void setAllFrom(Taggable<T> t)
throws NullPointerException
Forgeable
setAllFrom in interface Forgeable<Taggable<T extends Tag>>t - the object whose behavior is to be copied to this instance
NullPointerException - if the given object parameter is nullpublic String[] getTagStrings()
public static String[] getTagStrings(Taggable<?> t)
public Iterator<T> iterator()
iterator in interface Iterable<T extends Tag>public Collection<T> getTags()
Taggable
getTags in interface Taggable<T extends Tag>public boolean isTagged(T tag)
Taggable
isTagged in interface Taggable<T extends Tag>public boolean remove(T tag)
Taggable
remove in interface Taggable<T extends Tag>tag - the Group that this instance is to be removed from as a member
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||