Package org.geotools.util
Class PartiallyOrderedSet<E>
Object
AbstractCollection<E>
AbstractSet<E>
PartiallyOrderedSet<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
Set of elements having a partial order, established by setting before/after relationship calling
setOrder(Object, Object)
- Author:
- Andrea Aime
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSet
equals, hashCode, removeAll
Methods inherited from class AbstractCollection
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
Methods inherited from interface Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface Set
addAll, clear, contains, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
PartiallyOrderedSet
public PartiallyOrderedSet(boolean throwOnCycle) -
PartiallyOrderedSet
public PartiallyOrderedSet()
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceSet<E>
- Overrides:
add
in classAbstractCollection<E>
-
remove
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceSet<E>
- Overrides:
remove
in classAbstractCollection<E>
-
setOrder
-
clearOrder
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceSet<E>
- Specified by:
size
in classAbstractCollection<E>
-