Object PositionSurrogateUtils
-
- All Implemented Interfaces:
public class PositionSurrogateUtils
Utility class for PositionSurrogate objects, used for conversion from Position and PositionInput objects.
-
-
Field Summary
Fields Modifier and Type Field Description public final static PositionSurrogateUtils
INSTANCE
-
Method Summary
Modifier and Type Method Description final PositionSurrogate
toPositionSurrogate(Position<?> position)
Converts a Position to its relative PositionSurrogate. final PositionSurrogate
fromPositionInput(PositionInput input)
Converts a PositionInput to its relative PositionSurrogate. -
-
Method Detail
-
toPositionSurrogate
final PositionSurrogate toPositionSurrogate(Position<?> position)
Converts a Position to its relative PositionSurrogate.
- Parameters:
position
- the Position to convert.- Returns:
the PositionSurrogate relative to the given position.
-
fromPositionInput
final PositionSurrogate fromPositionInput(PositionInput input)
Converts a PositionInput to its relative PositionSurrogate.
- Parameters:
input
- the PositionInput to convert.- Returns:
the PositionSurrogate relative to the given position.
-
-
-
-