public abstract class ImmutableSpongeCollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,L,I>> extends ImmutableSpongeValue<V> implements org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,I,L>
actualValue
Modifier | Constructor and Description |
---|---|
protected |
ImmutableSpongeCollectionValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<V>> key,
V defaultValue) |
protected |
ImmutableSpongeCollectionValue(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 |
---|---|
abstract L |
asMutable() |
boolean |
contains(E element) |
boolean |
containsAll(Iterable<E> iterable) |
boolean |
isEmpty() |
int |
size() |
abstract I |
transform(java.util.function.Function<V,V> function) |
abstract I |
with(V value) |
cachedOf
equals, exists, get, getDefault, getDirect, getKey, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected ImmutableSpongeCollectionValue(org.spongepowered.api.data.key.Key<? extends org.spongepowered.api.data.value.BaseValue<V>> key, V defaultValue)
public abstract I with(V value)
with
in interface org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,L,I>>
with
in interface org.spongepowered.api.data.value.immutable.ImmutableValue<V extends Collection<E>>
with
in class ImmutableSpongeValue<V extends Collection<E>>
public abstract I transform(java.util.function.Function<V,V> function)
transform
in interface org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,L,I>>
transform
in interface org.spongepowered.api.data.value.immutable.ImmutableValue<V extends Collection<E>>
transform
in class ImmutableSpongeValue<V extends Collection<E>>
public abstract L asMutable()
asMutable
in interface org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V extends Collection<E>,I extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue<E,V,I,L>,L extends org.spongepowered.api.data.value.mutable.CollectionValue<E,V,L,I>>
asMutable
in interface org.spongepowered.api.data.value.immutable.ImmutableValue<V extends Collection<E>>
asMutable
in class ImmutableSpongeValue<V extends Collection<E>>
public int size()
public boolean isEmpty()
public boolean contains(E element)