public abstract class SpongeCollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,L,I>> extends SpongeValue<V> implements org.spongepowered.api.data.value.mutable.CollectionValue<E,V,I,L>
actualValue
Constructor and Description |
---|
SpongeCollectionValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<V>> key,
V defaultValue) |
SpongeCollectionValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<V>> key,
V defaultValue,
V actualValue) |
Modifier and Type | Method and Description |
---|---|
I |
add(E element) |
I |
addAll(Iterable<E> elements) |
abstract L |
asImmutable() |
boolean |
contains(E element) |
boolean |
containsAll(Collection<E> iterable) |
boolean |
exists() |
Optional<V> |
getDirect() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
I |
remove(E element) |
I |
removeAll(Iterable<E> elements) |
I |
removeAll(Predicate<E> predicate) |
I |
set(V value) |
int |
size() |
I |
transform(Function<V,V> function) |
get, getDefault, getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filter, getAll
forEach, spliterator
public SpongeCollectionValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<V>> key, V defaultValue)
public I set(V value)
set
in interface org.spongepowered.api.data.value.mutable.CollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,L,I>>
set
in interface org.spongepowered.api.data.value.mutable.Value<V extends Collection<E>>
set
in class SpongeValue<V extends Collection<E>>
public I transform(Function<V,V> function)
transform
in interface org.spongepowered.api.data.value.mutable.CollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,L,I>>
transform
in interface org.spongepowered.api.data.value.mutable.Value<V extends Collection<E>>
transform
in class SpongeValue<V extends Collection<E>>
public int size()
public boolean isEmpty()
public boolean contains(E element)
public boolean containsAll(Collection<E> iterable)
public boolean exists()
exists
in interface org.spongepowered.api.data.value.BaseValue<V extends Collection<E>>
exists
in class AbstractBaseValue<V extends Collection<E>>
public abstract L asImmutable()
asImmutable
in interface org.spongepowered.api.data.value.mutable.CollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,L,I>>
asImmutable
in interface org.spongepowered.api.data.value.mutable.Value<V extends Collection<E>>
asImmutable
in class SpongeValue<V extends Collection<E>>
public Optional<V> getDirect()
getDirect
in interface org.spongepowered.api.data.value.BaseValue<V extends Collection<E>>
getDirect
in class AbstractBaseValue<V extends Collection<E>>