org.pcollections
Interface POrderedSet<E>
- Type Parameters:
E
-
- All Superinterfaces:
- Collection<E>, Iterable<E>, PCollection<E>, PSet<E>, Set<E>
- All Known Implementing Classes:
- OrderedPSet
public interface POrderedSet<E>
- extends PSet<E>
Like PSet
but preserves insertion order. Persistent equivalent of
LinkedHashSet
.
- Author:
- Tassilo Horn <[email protected]>
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
plus
POrderedSet<E> plus(E e)
- Specified by:
plus
in interface PCollection<E>
- Specified by:
plus
in interface PSet<E>
- Parameters:
e
- non-null
- Returns:
- a collection which contains e and all of the elements of this
plusAll
POrderedSet<E> plusAll(Collection<? extends E> list)
- Specified by:
plusAll
in interface PCollection<E>
- Specified by:
plusAll
in interface PSet<E>
- Parameters:
list
- contains no null elements
- Returns:
- a collection which contains all of the elements of list and this
minus
POrderedSet<E> minus(Object e)
- Specified by:
minus
in interface PCollection<E>
- Specified by:
minus
in interface PSet<E>
- Returns:
- this with a single instance of e removed, if e is in this
minusAll
POrderedSet<E> minusAll(Collection<?> list)
- Specified by:
minusAll
in interface PCollection<E>
- Specified by:
minusAll
in interface PSet<E>
- Returns:
- this with all elements of list completely removed
get
E get(int index)
indexOf
int indexOf(Object o)
Copyright © 2011. All Rights Reserved.