public class OrderedPSet<E> extends AbstractSet<E> implements POrderedSet<E>, Serializable
| Modifier and Type | Method and Description |
|---|---|
static <E> OrderedPSet<E> |
empty() |
static <E> OrderedPSet<E> |
from(Collection<? extends E> list) |
E |
get(int index) |
int |
indexOf(Object o) |
Iterator<E> |
iterator() |
OrderedPSet<E> |
minus(Object e) |
OrderedPSet<E> |
minusAll(Collection<?> list) |
OrderedPSet<E> |
plus(E e) |
OrderedPSet<E> |
plusAll(Collection<? extends E> list) |
static <E> OrderedPSet<E> |
singleton(E e) |
int |
size() |
equals, hashCode, removeAlladd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, remove, removeAll, retainAlladd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static <E> OrderedPSet<E> empty()
public static <E> OrderedPSet<E> from(Collection<? extends E> list)
public static <E> OrderedPSet<E> singleton(E e)
public OrderedPSet<E> plus(E e)
plus in interface PCollection<E>plus in interface POrderedSet<E>plus in interface PSet<E>e - non-nullpublic OrderedPSet<E> plusAll(Collection<? extends E> list)
plusAll in interface PCollection<E>plusAll in interface POrderedSet<E>plusAll in interface PSet<E>list - contains no null elementspublic OrderedPSet<E> minus(Object e)
minus in interface PCollection<E>minus in interface POrderedSet<E>minus in interface PSet<E>public OrderedPSet<E> minusAll(Collection<?> list)
minusAll in interface PCollection<E>minusAll in interface POrderedSet<E>minusAll in interface PSet<E>public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public E get(int index)
get in interface POrderedSet<E>public int indexOf(Object o)
indexOf in interface POrderedSet<E>Copyright © 2019. All rights reserved.