Package org.spongepowered.api.data
Interface DataManipulator.Immutable.Factory
-
- Enclosing interface:
- DataManipulator.Immutable
public static interface DataManipulator.Immutable.Factory
A factory for generatingDataManipulator.Immutable
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataManipulator.Immutable
of()
Creates an emptyDataManipulator.Immutable
.DataManipulator.Immutable
of(java.lang.Iterable<? extends Value<?>> values)
Creates anDataManipulator.Immutable
view directly based on theValue
s provided by the givenIterable
, such that allIterable.forEach(Consumer)
will be converted viaValue.asImmutable()
and constructed into anDataManipulator.Immutable
.DataManipulator.Immutable
of(ValueContainer valueContainer)
Creates anDataManipulator.Immutable
view directly based on theValue
s provided by the givenValueContainer
, such that allValueContainer.getValues()
will be converted viaValue.asImmutable()
and constructed into anDataManipulator.Immutable
.
-
-
-
Method Detail
-
of
DataManipulator.Immutable of()
Creates an emptyDataManipulator.Immutable
.- Returns:
- An empty immutable manipulator
- See Also:
DataManipulator.immutableOf()
-
of
DataManipulator.Immutable of(java.lang.Iterable<? extends Value<?>> values)
Creates anDataManipulator.Immutable
view directly based on theValue
s provided by the givenIterable
, such that allIterable.forEach(Consumer)
will be converted viaValue.asImmutable()
and constructed into anDataManipulator.Immutable
.- Parameters:
values
- The value container to populate values from- Returns:
- The immutable manipulator
- See Also:
DataManipulator.immutableOf(Iterable)
-
of
DataManipulator.Immutable of(ValueContainer valueContainer)
Creates anDataManipulator.Immutable
view directly based on theValue
s provided by the givenValueContainer
, such that allValueContainer.getValues()
will be converted viaValue.asImmutable()
and constructed into anDataManipulator.Immutable
.- Parameters:
valueContainer
- The value container to populate values from- Returns:
- The immutable manipulator
- See Also:
DataManipulator.immutableOf(ValueContainer)
-
-