Package org.spongepowered.api.data
Interface DataManipulator.Immutable.Factory
- Enclosing interface:
DataManipulator.Immutable
public static interface DataManipulator.Immutable.Factory
A factory for generating
DataManipulator.Immutable
s.-
Method Summary
Modifier and TypeMethodDescriptionof()
Creates an emptyDataManipulator.Immutable
.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
.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 Details
-
of
Creates an emptyDataManipulator.Immutable
.- Returns:
- An empty immutable manipulator
- See Also:
-
of
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:
-
of
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:
-