org.ws4d.java.structures
Class Set
java.lang.Object
org.ws4d.java.structures.DataStructure
org.ws4d.java.structures.Set
- Direct Known Subclasses:
- HashSet, LockedSet
public abstract class Set
- extends DataStructure
Constructor Summary |
Set()
|
Method Summary |
boolean |
containsAll(DataStructure data)
Checks whether all items within data are present within this
data structure instance and returns true only if this is the
case. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getClassShortName()
Returns the short name of the class of this DataStructure
instance. |
int |
hashCode()
|
Methods inherited from class org.ws4d.java.structures.DataStructure |
add, addAll, clear, contains, isEmpty, iterator, remove, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Set
public Set()
getClassShortName
public java.lang.String getClassShortName()
- Description copied from class:
DataStructure
- Returns the short name of the class of this
DataStructure
instance.
- Overrides:
getClassShortName
in class DataStructure
- Returns:
- the short name of this
data structure
instance's
class
containsAll
public boolean containsAll(DataStructure data)
- Description copied from class:
DataStructure
- Checks whether all items within
data
are present within this
data structure instance and returns true
only if this is the
case.
- Overrides:
containsAll
in class DataStructure
- Parameters:
data
- the items to check the presence of
- Returns:
true
if all objects within data
are
contained by this instance, false
if at least one of
them is not
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class DataStructure