public class SpongeListValue<E> extends SpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.mutable.ListValue<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>> implements org.spongepowered.api.data.value.mutable.ListValue<E>
actualValue
Constructor and Description |
---|
SpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key) |
SpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key,
List<E> actualValue) |
SpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key,
List<E> defaultList,
List<E> actualList) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.data.value.mutable.ListValue<E> |
add(int index,
E value) |
org.spongepowered.api.data.value.mutable.ListValue<E> |
add(int index,
Iterable<E> values) |
org.spongepowered.api.data.value.immutable.ImmutableListValue<E> |
asImmutable() |
org.spongepowered.api.data.value.mutable.ListValue<E> |
filter(java.util.function.Predicate<? super E> predicate) |
E |
get(int index) |
List<E> |
getAll() |
int |
indexOf(E element) |
org.spongepowered.api.data.value.mutable.ListValue<E> |
remove(int index) |
org.spongepowered.api.data.value.mutable.ListValue<E> |
set(int index,
E element) |
org.spongepowered.api.data.value.mutable.ListValue<E> |
transform(java.util.function.Function<List<E>,List<E>> function) |
add, addAll, contains, containsAll, exists, getDirect, isEmpty, iterator, remove, removeAll, removeAll, set, size
equals, get, getDefault, getKey, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, contains, containsAll, isEmpty, remove, removeAll, removeAll, set, size
exists, get, getDefault, getDirect, getKey
forEach, iterator, spliterator
public SpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key)
public SpongeListValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<List<E>>> key, List<E> defaultList, List<E> actualList)
public org.spongepowered.api.data.value.mutable.ListValue<E> transform(java.util.function.Function<List<E>,List<E>> function)
transform
in interface org.spongepowered.api.data.value.mutable.CollectionValue<E,List<E>,org.spongepowered.api.data.value.mutable.ListValue<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>>
transform
in interface org.spongepowered.api.data.value.mutable.Value<List<E>>
transform
in class SpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.mutable.ListValue<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>>
public org.spongepowered.api.data.value.mutable.ListValue<E> filter(java.util.function.Predicate<? super E> predicate)
public org.spongepowered.api.data.value.immutable.ImmutableListValue<E> asImmutable()
asImmutable
in interface org.spongepowered.api.data.value.mutable.CollectionValue<E,List<E>,org.spongepowered.api.data.value.mutable.ListValue<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>>
asImmutable
in interface org.spongepowered.api.data.value.mutable.Value<List<E>>
asImmutable
in class SpongeCollectionValue<E,List<E>,org.spongepowered.api.data.value.mutable.ListValue<E>,org.spongepowered.api.data.value.immutable.ImmutableListValue<E>>
public E get(int index)
get
in interface org.spongepowered.api.data.value.mutable.ListValue<E>
public org.spongepowered.api.data.value.mutable.ListValue<E> add(int index, E value)
add
in interface org.spongepowered.api.data.value.mutable.ListValue<E>
public org.spongepowered.api.data.value.mutable.ListValue<E> add(int index, Iterable<E> values)
add
in interface org.spongepowered.api.data.value.mutable.ListValue<E>
public org.spongepowered.api.data.value.mutable.ListValue<E> remove(int index)
remove
in interface org.spongepowered.api.data.value.mutable.ListValue<E>
public org.spongepowered.api.data.value.mutable.ListValue<E> set(int index, E element)
set
in interface org.spongepowered.api.data.value.mutable.ListValue<E>