public class ImmutableSpongeListValue<E> extends ImmutableSpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>> implements org.spongepowered.api.data.value.immutable.ImmutableListValue<E>
actualValue
Constructor and Description |
---|
ImmutableSpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key,
ImmutableList<E> actualValue) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.value.mutable.ListValue<E> |
asMutable() |
E |
get(int index) |
List<E> |
getAll() |
int |
indexOf(E element) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
set(int index,
E element) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
transform(Function<List<E>,List<E>> function) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
with(E... elements) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
with(int index,
E value) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
with(int index,
Iterable<E> values) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
with(List<E> value) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
withAll(Iterable<E> elements) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
without(E element) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
without(int index) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
withoutAll(Iterable<E> elements) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
withoutAll(Predicate<E> predicate) |
contains, containsAll, isEmpty, size
exists, get, getDefault, getDirect, getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ImmutableSpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key, ImmutableList<E> actualValue)
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> with(List<E> value)
with
in interface org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>>
with
in interface org.spongepowered.api.data.value.immutable.ImmutableValue<List<E>>
with
in class ImmutableSpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> transform(Function<List<E>,List<E>> function)
transform
in interface org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>>
transform
in interface org.spongepowered.api.data.value.immutable.ImmutableValue<List<E>>
transform
in class ImmutableSpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>>
public org.spongepowered.api.data.value.mutable.ListValue<E> asMutable()
asMutable
in interface org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>>
asMutable
in interface org.spongepowered.api.data.value.immutable.ImmutableValue<List<E>>
asMutable
in class ImmutableSpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>,org.spongepowered.api.data.value.mutable.ListValue<E>>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> withAll(Iterable<E> elements)
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> withoutAll(Iterable<E> elements)
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> withoutAll(Predicate<E> predicate)
public E get(int index)
get
in interface org.spongepowered.api.data.value.immutable.ImmutableListValue<E>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> with(int index, E value)
with
in interface org.spongepowered.api.data.value.immutable.ImmutableListValue<E>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> with(int index, Iterable<E> values)
with
in interface org.spongepowered.api.data.value.immutable.ImmutableListValue<E>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> without(int index)
without
in interface org.spongepowered.api.data.value.immutable.ImmutableListValue<E>
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> set(int index, E element)
set
in interface org.spongepowered.api.data.value.immutable.ImmutableListValue<E>