Package com.github.tonivade.purefun.data
Class ImmutableSet.PImmutableSet<E>
java.lang.Object
com.github.tonivade.purefun.data.ImmutableSet.PImmutableSet<E>
- All Implemented Interfaces:
Bindable<Sequence<?>,,E> Mappable<Sequence<?>,,E> ImmutableSet<E>,Sequence<E>,SequenceOf<E>,Kind<Sequence<?>,,E> Serializable,Iterable<E>
- Enclosing interface:
ImmutableSet<E>
public static final class ImmutableSet.PImmutableSet<E>
extends Object
implements ImmutableSet<E>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.data.ImmutableSet
ImmutableSet.PImmutableSet<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.pcollections.PSet<E> private static final ImmutableSet<?> private static final Equal<ImmutableSet.PImmutableSet<?>> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePImmutableSet(Collection<E> backend) privatePImmutableSet(org.pcollections.PSet<E> backend) -
Method Summary
Modifier and TypeMethodDescriptionbooleandifference(ImmutableSet<? extends E> other) booleaninthashCode()intersection(ImmutableSet<? extends E> other) iterator()private Objectreverse()intsize()toSet()toString()union(ImmutableSet<? extends E> other) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tonivade.purefun.data.ImmutableSet
filter, filterNot, flatMap, mapMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EMPTY
-
EQUAL
-
backend
-
-
Constructor Details
-
PImmutableSet
-
PImmutableSet
-
-
Method Details
-
size
public int size() -
contains
-
iterator
-
toSet
- Specified by:
toSetin interfaceImmutableSet<E>
-
append
-
remove
-
appendAll
-
removeAll
-
reverse
-
union
- Specified by:
unionin interfaceImmutableSet<E>
-
intersection
- Specified by:
intersectionin interfaceImmutableSet<E>
-
difference
- Specified by:
differencein interfaceImmutableSet<E>
-
hashCode
public int hashCode() -
equals
-
toString
-
readResolve
-