Package org.spongepowered.api.data.value
Interface SetValue.Immutable<E>
- Type Parameters:
- E- The type of elements supported
- All Superinterfaces:
- CollectionValue<E,,- Set<E>> - CollectionValue.Immutable<E,,- Set<E>, - SetValue.Immutable<E>, - SetValue.Mutable<E>> - Iterable<E>,- SetValue<E>,- Value<Set<E>>,- Value.Immutable<Set<E>>
public static interface SetValue.Immutable<E>
extends SetValue<E>, CollectionValue.Immutable<E,Set<E>,SetValue.Immutable<E>,SetValue.Mutable<E>>   
Represents a type of 
CollectionValue.Immutable backed by a
 Set. The reasoning is that a Set retains no ordering of the
 elements it contains.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.data.value.CollectionValueCollectionValue.Immutable<E,C extends Collection<E>, I extends CollectionValue.Immutable<E, C, I, M>, M extends CollectionValue.Mutable<E, C, M, I>>, CollectionValue.Mutable<E, C extends Collection<E>, M extends CollectionValue.Mutable<E, C, M, I>, I extends CollectionValue.Immutable<E, C, I, M>> Nested classes/interfaces inherited from interface org.spongepowered.api.data.value.SetValueSetValue.Immutable<E>, SetValue.Mutable<E>Nested classes/interfaces inherited from interface org.spongepowered.api.data.value.ValueValue.Factory, Value.Immutable<E>, Value.Mutable<E>
- 
Method SummaryModifier and TypeMethodDescriptiondefault SetValue.Immutable<E>Retrieves an immutable form of this value.Retrieves a mutable form of this value.default SetValue.Mutable<E>Retrieves a copy in the mutable form of this value.Methods inherited from interface org.spongepowered.api.data.value.CollectionValueall, contains, containsAll, isEmpty, sizeMethods inherited from interface org.spongepowered.api.data.value.CollectionValue.Immutabletransform, with, withAll, withElement, without, withoutAll, withoutAllMethods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Method Details- 
asMutableSetValue.Mutable<E> asMutable()Description copied from interface:ValueRetrieves a mutable form of this value. Due to the vague nature of the value itself, some cases can already provide aValue.Mutableinstance where this would simply return itself. In other cases, where the retrieved value is anValue.Immutableinstance, a new mutable value is created with the same key and values.- Specified by:
- asMutablein interface- CollectionValue<E,- Set<E>> 
- Specified by:
- asMutablein interface- CollectionValue.Immutable<E,- Set<E>, - SetValue.Immutable<E>, - SetValue.Mutable<E>> 
- Specified by:
- asMutablein interface- SetValue<E>
- Specified by:
- asMutablein interface- Value<E>
- Specified by:
- asMutablein interface- Value.Immutable<E>
- Returns:
- A mutable value
 
- 
asMutableCopyDescription copied from interface:ValueRetrieves a copy in the mutable form of this value. The new is created with the same key and values.- Specified by:
- asMutableCopyin interface- CollectionValue<E,- Set<E>> 
- Specified by:
- asMutableCopyin interface- CollectionValue.Immutable<E,- Set<E>, - SetValue.Immutable<E>, - SetValue.Mutable<E>> 
- Specified by:
- asMutableCopyin interface- SetValue<E>
- Specified by:
- asMutableCopyin interface- Value<E>
- Specified by:
- asMutableCopyin interface- Value.Immutable<E>
- Returns:
- A mutable value
 
- 
asImmutableDescription copied from interface:ValueRetrieves an immutable form of this value. Due to the vague nature of the value itself, some cases can already provide aValue.Immutableinstance where this would simply return itself. In other cases, where the retrieved value is aValue.Mutableinstance, a new immutable value is created with the same key and values.- Specified by:
- asImmutablein interface- CollectionValue<E,- Set<E>> 
- Specified by:
- asImmutablein interface- CollectionValue.Immutable<E,- Set<E>, - SetValue.Immutable<E>, - SetValue.Mutable<E>> 
- Specified by:
- asImmutablein interface- SetValue<E>
- Specified by:
- asImmutablein interface- Value<E>
- Specified by:
- asImmutablein interface- Value.Immutable<E>
- Returns:
- An immutable value
 
 
-