Package org.spongepowered.api.data
Interface DataManipulator.Immutable.Factory
-
- Enclosing interface:
- DataManipulator.Immutable
public static interface DataManipulator.Immutable.FactoryA factory for generatingDataManipulator.Immutables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataManipulator.Immutableof()Creates an emptyDataManipulator.Immutable.DataManipulator.Immutableof(Iterable<? extends Value<?>> values)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.DataManipulator.Immutableof(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 Detail
-
of
DataManipulator.Immutable of()
Creates an emptyDataManipulator.Immutable.- Returns:
- An empty immutable manipulator
- See Also:
DataManipulator.immutableOf()
-
of
DataManipulator.Immutable of(Iterable<? extends Value<?>> values)
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:
DataManipulator.immutableOf(Iterable)
-
of
DataManipulator.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.- Parameters:
valueContainer- The value container to populate values from- Returns:
- The immutable manipulator
- See Also:
DataManipulator.immutableOf(ValueContainer)
-
-