Class CardinalDirection2DMaps
java.lang.Object
de.xima.fc.common.geometry.CardinalDirection2DMaps
Provides access to common implementations of
ICardinalDirection2DMap.- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptioncardinalDirection2DMap(double value) Creates a newICardinalDirection2DMapDoublewith the specified value for each cardinal direction.cardinalDirection2DMap(double[] values) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.cardinalDirection2DMap(double northSouth, double eastWest) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.cardinalDirection2DMap(double north, double east, double south, double west) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.static ICardinalDirection2DMapIntcardinalDirection2DMap(int value) Creates a newICardinalDirection2DMapIntwith the specified value for each cardinal direction.static ICardinalDirection2DMapIntcardinalDirection2DMap(int[] values) Creates a newICardinalDirection2DMapIntwith the specified values for each cardinal direction.static ICardinalDirection2DMapIntcardinalDirection2DMap(int northSouth, int eastWest) Creates a newICardinalDirection2DMapIntwith the specified values for each cardinal direction.static ICardinalDirection2DMapIntcardinalDirection2DMap(int north, int east, int south, int west) Creates a newICardinalDirection2DMapIntwith the specified values for each cardinal direction.static ICardinalDirection2DMapLongcardinalDirection2DMap(long value) Creates a newICardinalDirection2DMapLongwith the specified value for each cardinal direction.static ICardinalDirection2DMapLongcardinalDirection2DMap(long[] values) Creates a newICardinalDirection2DMapLongwith the specified values for each cardinal direction.static ICardinalDirection2DMapLongcardinalDirection2DMap(long northSouth, long eastWest) Creates a newICardinalDirection2DMapLongwith the specified values for each cardinal direction.static ICardinalDirection2DMapLongcardinalDirection2DMap(long north, long east, long south, long west) Creates a newICardinalDirection2DMapLongwith the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value value) Creates a newICardinalDirection2DMapwith the specified value for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value[] values) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value northSouth, Value eastWest) Creates a newICardinalDirection2DMapwith the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> cardinalDirection2DMap(Value north, Value east, Value south, Value west) Creates a newICardinalDirection2DMapwith the specified values for each cardinal direction.of(double value) Creates a newICardinalDirection2DMapDoublewith the specified value for each cardinal direction.of(double[] values) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.of(double northSouth, double eastWest) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.of(double north, double east, double south, double west) Creates a newICardinalDirection2DMapDoublewith the specified values for each cardinal direction.static ICardinalDirection2DMapIntof(int value) Creates a newICardinalDirection2DMapIntwith the specified value for each cardinal direction.static ICardinalDirection2DMapIntof(int[] values) Creates a newICardinalDirection2DMapIntwith the specified values for each cardinal direction.static ICardinalDirection2DMapIntof(int northSouth, int eastWest) Creates a newICardinalDirection2DMapIntwith the specified values for each cardinal direction.static ICardinalDirection2DMapIntof(int north, int east, int south, int west) Creates a newICardinalDirection2DMapIntwith the specified values for each cardinal direction.static ICardinalDirection2DMapLongof(long value) Creates a newICardinalDirection2DMapLongwith the specified value for each cardinal direction.static ICardinalDirection2DMapLongof(long[] values) Creates a newICardinalDirection2DMapLongwith the specified values for each cardinal direction.static ICardinalDirection2DMapLongof(long northSouth, long eastWest) Creates a newICardinalDirection2DMapLongwith the specified values for each cardinal direction.static ICardinalDirection2DMapLongof(long north, long east, long south, long west) Creates a newICardinalDirection2DMapLongwith the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> of(Value value) Creates a newICardinalDirection2DMapwith the specified value for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> of(Value[] values) Creates a newICardinalDirection2DMapwith the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> of(Value northSouth, Value eastWest) Creates a newICardinalDirection2DMapwith the specified values for each cardinal direction.static <Value> ICardinalDirection2DMap<Value> of(Value north, Value east, Value south, Value west) Creates a newICardinalDirection2DMapwith the specified values for each cardinal direction.
-
Method Details
-
cardinalDirection2DMap
Creates a newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapLongwith 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
Creates a newICardinalDirection2DMapDoublewith 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
Creates a newICardinalDirection2DMapwith 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
Creates a newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapLongwith 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 newICardinalDirection2DMapDoublewith 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 newICardinalDirection2DMapwith 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 newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapIntwith 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 newICardinalDirection2DMapLongwith 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
Creates a newICardinalDirection2DMapLongwith 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 newICardinalDirection2DMapDoublewith 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
Creates a newICardinalDirection2DMapDoublewith 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 newICardinalDirection2DMapwith 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
Creates a newICardinalDirection2DMapDoublewith 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
Creates a newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapLongwith 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
Creates a newICardinalDirection2DMapDoublewith 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
Creates a newICardinalDirection2DMapwith 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
Creates a newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapLongwith 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
Creates a newICardinalDirection2DMapDoublewith 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
Creates a newICardinalDirection2DMapwith 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
Creates a newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapIntwith 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
Creates a newICardinalDirection2DMapLongwith 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
Creates a newICardinalDirection2DMapLongwith 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 newICardinalDirection2DMapDoublewith 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
Creates a newICardinalDirection2DMapDoublewith 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 newICardinalDirection2DMapwith 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
Creates a newICardinalDirection2DMapwith 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.
-