Package org.spongepowered.api.data
Interface DataManipulator.Immutable.Factory
- Enclosing interface:
DataManipulator.Immutable
public static interface DataManipulator.Immutable.Factory
A factory for generating
DataManipulator.Immutables.-
Method Summary
Modifier and TypeMethodDescriptionof()Creates an emptyDataManipulator.Immutable.Creates anDataManipulator.Immutableview directly based on theValues provided by the givenIterable, such that allIterable.forEach(Consumer)will be converted viaValue.asImmutable()and constructed into anDataManipulator.Immutable.of(ValueContainer valueContainer) Creates anDataManipulator.Immutableview directly based on theValues 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.Immutableview directly based on theValues 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.Immutableview directly based on theValues 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:
-