Package com.github.tonivade.purefun.data
Class ImmutableArray.PImmutableArray<E>
java.lang.Object
com.github.tonivade.purefun.data.ImmutableArray.PImmutableArray<E>
- All Implemented Interfaces:
Bindable<Sequence<?>,,E> Mappable<Sequence<?>,,E> ImmutableArray<E>,Sequence<E>,SequenceOf<E>,Kind<Sequence<?>,,E> Serializable,Iterable<E>
- Enclosing interface:
ImmutableArray<E>
public static final class ImmutableArray.PImmutableArray<E>
extends Object
implements ImmutableArray<E>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.data.ImmutableArray
ImmutableArray.PImmutableArray<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.pcollections.PVector<E> private static final ImmutableArray<?> private static final Equal<ImmutableArray.PImmutableArray<?>> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePImmutableArray(Collection<E> collection) privatePImmutableArray(org.pcollections.PVector<E> backend) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tonivade.purefun.data.ImmutableArray
filter, filterNot, flatMap, mapMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
-
EQUAL
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
backend
-
-
Constructor Details
-
PImmutableArray
-
PImmutableArray
-
-
Method Details
-
size
public int size() -
contains
-
iterator
-
toList
- Specified by:
toListin interfaceImmutableArray<E>
-
append
-
remove
-
appendAll
-
removeAll
-
dropWhile
- Specified by:
dropWhilein interfaceImmutableArray<E>
-
takeWhile
- Specified by:
takeWhilein interfaceImmutableArray<E>
-
drop
- Specified by:
dropin interfaceImmutableArray<E>
-
reverse
-
sort
- Specified by:
sortin interfaceImmutableArray<E>
-
get
- Specified by:
getin interfaceImmutableArray<E>
-
remove
- Specified by:
removein interfaceImmutableArray<E>
-
replace
- Specified by:
replacein interfaceImmutableArray<E>
-
insert
- Specified by:
insertin interfaceImmutableArray<E>
-
insertAll
- Specified by:
insertAllin interfaceImmutableArray<E>
-
hashCode
public int hashCode() -
equals
-
toString
-
readResolve
-