|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HierarchicalSet<E>
This interface defines the functionalities of the sets returned by methods of
the interface Graph
.
Set
,
Graph
Method Summary | |
---|---|
void |
disconnect()
Disconnects this set of its superset. |
HierarchicalSet<E> |
getSuperSet()
If this set has been created as a subset of another set s with newSubSet() or newSubSet(Iterator) , then returns
s. |
boolean |
isSubSetOf(HierarchicalSet<?> set)
Says if the object is a subset of a specified set. |
HierarchicalSet<E> |
newSubSet()
Returns a new empty set which is a subset of this set. |
HierarchicalSet<E> |
newSubSet(java.util.Iterator<? extends E> it)
Returns a new set which is a subset of this set. |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
HierarchicalSet<E> newSubSet()
HierarchicalSet<E> newSubSet(java.util.Iterator<? extends E> it) throws java.lang.IllegalArgumentException
it
- the iterator that enumerates the elements of this set defining the
new set.
java.lang.IllegalArgumentException
- If one elements return by the iterator is not in this set.HierarchicalSet<E> getSuperSet()
newSubSet()
or newSubSet(Iterator)
, then returns
s. Otherwise, returns null
.
boolean isSubSetOf(HierarchicalSet<?> set)
set
- the potential superset of this set.
false
otherwise.void disconnect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |