Package com.github.tonivade.purefun.data
Class ImmutableList.PImmutableList<E>
java.lang.Object
com.github.tonivade.purefun.data.ImmutableList.PImmutableList<E>
- All Implemented Interfaces:
Bindable<Sequence<?>,,E> Mappable<Sequence<?>,,E> ImmutableList<E>,Sequence<E>,SequenceOf<E>,Kind<Sequence<?>,,E> Serializable,Iterable<E>
- Enclosing interface:
ImmutableList<E>
public static final class ImmutableList.PImmutableList<E>
extends Object
implements ImmutableList<E>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.data.ImmutableList
ImmutableList.PImmutableList<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.pcollections.PStack<E> private static final ImmutableList<?> private static final Equal<ImmutableList.PImmutableList<?>> private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandrop(int n) boolean(package private) static <E> ImmutableList<E> from(Collection<E> backend) (package private) static <E> ImmutableList<E> from(org.pcollections.PStack<E> backend) inthashCode()head()iterator()prependAll(Sequence<? extends E> other) private Objectreverse()intsize()sort(Comparator<? super E> comparator) toList()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tonivade.purefun.data.ImmutableList
filterNot, flatMap, map, tailMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
-
EQUAL
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
backend
-
-
Constructor Details
-
PImmutableList
-
-
Method Details
-
from
-
from
-
size
public int size() -
contains
-
iterator
-
toList
- Specified by:
toListin interfaceImmutableList<E>
-
append
-
prepend
- Specified by:
prependin interfaceImmutableList<E>
-
remove
-
appendAll
-
prependAll
- Specified by:
prependAllin interfaceImmutableList<E>
-
removeAll
-
reverse
-
head
- Specified by:
headin interfaceImmutableList<E>
-
drop
- Specified by:
dropin interfaceImmutableList<E>
-
dropWhile
- Specified by:
dropWhilein interfaceImmutableList<E>
-
takeWhile
- Specified by:
takeWhilein interfaceImmutableList<E>
-
filter
-
sort
- Specified by:
sortin interfaceImmutableList<E>
-
hashCode
public int hashCode() -
equals
-
toString
-
readResolve
-