|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.javamud.data.PersistentSet
An unordered set of unique items for storage. Stores String
s, PersistentObject
s, PersistentProperties
, or other PersistentSet
s.
Field Summary | |
protected Set |
items
Actual container for this Set. |
Constructor Summary | |
PersistentSet()
Constructor for the PersistentSet object |
Method Summary | |
boolean |
add(PersistentObject item)
Add a PersistentObject |
boolean |
add(PersistentProperties item)
Add a PersistentProperties |
boolean |
add(PersistentSet item)
Add a PersistentSet |
boolean |
add(String item)
Add a String |
boolean |
addAll(Collection c)
Import all objects from the collection to this. |
boolean |
addAll(PersistentSet set)
Add everything from another PersistentSet into this one. |
void |
clear()
Clear the set. |
boolean |
contains(Object o)
See Set.contains(java.lang.Object) |
boolean |
containsAll(Collection c)
See Set.contains(java.lang.Object) |
boolean |
equals(Object o)
See Set.equals(java.lang.Object) |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
add, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Field Detail |
protected Set items
Constructor Detail |
public PersistentSet()
Method Detail |
public boolean add(String item)
String
item
- String to add
Set.add(java.lang.Object)
Set.add(java.lang.Object)
public boolean add(PersistentProperties item)
PersistentProperties
item
- String to add
Set.add(java.lang.Object)
Set.add(java.lang.Object)
public boolean add(PersistentSet item)
PersistentSet
item
- String to add
Set.add(java.lang.Object)
Set.add(java.lang.Object)
public boolean add(PersistentObject item)
PersistentObject
item
- String to add
Set.add(java.lang.Object)
Set.add(java.lang.Object)
public boolean addAll(PersistentSet set)
PersistentSet
into this one.
set
- The set to add.
Set.addAll(java.util.Collection)
Set.addAll(java.util.Collection)
public boolean addAll(Collection c)
addAll
in interface Set
c
- The feature to be added to the All attribute
public void clear()
clear
in interface Set
Set.clear()
public boolean contains(Object o)
Set.contains(java.lang.Object)
contains
in interface Set
o
- Description of the Parameter
public boolean containsAll(Collection c)
Set.contains(java.lang.Object)
containsAll
in interface Set
c
- Description of the Parameter
public boolean equals(Object o)
Set.equals(java.lang.Object)
equals
in interface Set
equals
in class Object
o
- Description of the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |