Package de.xima.fc.common.geometry
Class CardinalDirection2DMaps
- java.lang.Object
-
- de.xima.fc.common.geometry.CardinalDirection2DMaps
-
public final class CardinalDirection2DMaps extends Object
Provides access to common implementations ofICardinalDirection2DMap
.- Since:
- 8.4.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICardinalDirection2DMapDouble
cardinalDirection2DMap(double value)
Creates a newICardinalDirection2DMapDouble
with the specified value for each cardinal direction.static ICardinalDirection2DMapDouble
cardinalDirection2DMap(double[] values)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static ICardinalDirection2DMapDouble
cardinalDirection2DMap(double northSouth, double eastWest)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static ICardinalDirection2DMapDouble
cardinalDirection2DMap(double north, double east, double south, double west)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static ICardinalDirection2DMapInt
cardinalDirection2DMap(int value)
Creates a newICardinalDirection2DMapInt
with the specified value for each cardinal direction.static ICardinalDirection2DMapInt
cardinalDirection2DMap(int[] values)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.static ICardinalDirection2DMapInt
cardinalDirection2DMap(int northSouth, int eastWest)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.static ICardinalDirection2DMapInt
cardinalDirection2DMap(int north, int east, int south, int west)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.static ICardinalDirection2DMapLong
cardinalDirection2DMap(long value)
Creates a newICardinalDirection2DMapLong
with the specified value for each cardinal direction.static ICardinalDirection2DMapLong
cardinalDirection2DMap(long[] values)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.static ICardinalDirection2DMapLong
cardinalDirection2DMap(long northSouth, long eastWest)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.static ICardinalDirection2DMapLong
cardinalDirection2DMap(long north, long east, long south, long west)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
cardinalDirection2DMap(Value value)
Creates a newICardinalDirection2DMap
with the specified value for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
cardinalDirection2DMap(Value[] values)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
cardinalDirection2DMap(Value northSouth, Value eastWest)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
cardinalDirection2DMap(Value north, Value east, Value south, Value west)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.static ICardinalDirection2DMapDouble
of(double value)
Creates a newICardinalDirection2DMapDouble
with the specified value for each cardinal direction.static ICardinalDirection2DMapDouble
of(double[] values)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static ICardinalDirection2DMapDouble
of(double northSouth, double eastWest)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static ICardinalDirection2DMapDouble
of(double north, double east, double south, double west)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.static ICardinalDirection2DMapInt
of(int value)
Creates a newICardinalDirection2DMapInt
with the specified value for each cardinal direction.static ICardinalDirection2DMapInt
of(int[] values)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.static ICardinalDirection2DMapInt
of(int northSouth, int eastWest)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.static ICardinalDirection2DMapInt
of(int north, int east, int south, int west)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.static ICardinalDirection2DMapLong
of(long value)
Creates a newICardinalDirection2DMapLong
with the specified value for each cardinal direction.static ICardinalDirection2DMapLong
of(long[] values)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.static ICardinalDirection2DMapLong
of(long northSouth, long eastWest)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.static ICardinalDirection2DMapLong
of(long north, long east, long south, long west)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
of(Value value)
Creates a newICardinalDirection2DMap
with the specified value for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
of(Value[] values)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
of(Value northSouth, Value eastWest)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value>
of(Value north, Value east, Value south, Value west)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.
-
-
-
Method Detail
-
cardinalDirection2DMap
public static ICardinalDirection2DMapInt cardinalDirection2DMap(int value)
Creates a newICardinalDirection2DMapInt
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given integer value with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapLong cardinalDirection2DMap(long value)
Creates a newICardinalDirection2DMapLong
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given long value with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapDouble cardinalDirection2DMap(double value)
Creates a newICardinalDirection2DMapDouble
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given double value with the four cardinal directions.
-
cardinalDirection2DMap
public static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value value)
Creates a newICardinalDirection2DMap
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given object value with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapInt cardinalDirection2DMap(int northSouth, int eastWest)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given integer values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapLong cardinalDirection2DMap(long northSouth, long eastWest)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given long values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapDouble cardinalDirection2DMap(double northSouth, double eastWest)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given double values with the four cardinal directions.
-
cardinalDirection2DMap
public static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value northSouth, Value eastWest)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given object values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapInt cardinalDirection2DMap(int north, int east, int south, int west)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates integer values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapInt cardinalDirection2DMap(int[] values)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates int values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapLong cardinalDirection2DMap(long north, long east, long south, long west)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates long values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapLong cardinalDirection2DMap(long[] values)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates long values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapDouble cardinalDirection2DMap(double north, double east, double south, double west)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates double values with the four cardinal directions.
-
cardinalDirection2DMap
public static ICardinalDirection2DMapDouble cardinalDirection2DMap(double[] values)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates double values with the four cardinal directions.
-
cardinalDirection2DMap
public static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value north, Value east, Value south, Value west)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.- Type Parameters:
Value
- The type of the values associated with the cardinal directions.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates object values with the four cardinal directions.
-
cardinalDirection2DMap
public static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value[] values)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates double values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapInt of(int value)
Creates a newICardinalDirection2DMapInt
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given integer value with the four cardinal directions.
-
of
public static ICardinalDirection2DMapLong of(long value)
Creates a newICardinalDirection2DMapLong
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given long value with the four cardinal directions.
-
of
public static ICardinalDirection2DMapDouble of(double value)
Creates a newICardinalDirection2DMapDouble
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given double value with the four cardinal directions.
-
of
public static <Value> ICardinalDirection2DMap<Value> of(Value value)
Creates a newICardinalDirection2DMap
with the specified value for each cardinal direction.- Parameters:
value
- The value for all four directions.- Returns:
- A new map that associates the given object value with the four cardinal directions.
-
of
public static ICardinalDirection2DMapInt of(int northSouth, int eastWest)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given integer values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapLong of(long northSouth, long eastWest)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given long values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapDouble of(double northSouth, double eastWest)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given double values with the four cardinal directions.
-
of
public static <Value> ICardinalDirection2DMap<Value> of(Value northSouth, Value eastWest)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.- Parameters:
northSouth
- The value for the north and south directions.eastWest
- The value for the east and west directions.- Returns:
- A new map that associates the given object values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapInt of(int north, int east, int south, int west)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates integer values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapInt of(int[] values)
Creates a newICardinalDirection2DMapInt
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates int values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapLong of(long north, long east, long south, long west)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates long values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapLong of(long[] values)
Creates a newICardinalDirection2DMapLong
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates long values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapDouble of(double north, double east, double south, double west)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates double values with the four cardinal directions.
-
of
public static ICardinalDirection2DMapDouble of(double[] values)
Creates a newICardinalDirection2DMapDouble
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates double values with the four cardinal directions.
-
of
public static <Value> ICardinalDirection2DMap<Value> of(Value north, Value east, Value south, Value west)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.- Type Parameters:
Value
- The type of the values associated with the cardinal directions.- Parameters:
north
- The value for the north direction.east
- The value for the east direction.south
- The value for the south direction.west
- The value for the west direction.- Returns:
- A new map that associates object values with the four cardinal directions.
-
of
public static <Value> ICardinalDirection2DMap<Value> of(Value[] values)
Creates a newICardinalDirection2DMap
with the specified values for each cardinal direction.- Parameters:
values
- The value for each direction.- Returns:
- A new map that associates object values with the four cardinal directions.
-
-