Class CardinalDirection2DMaps

    • Method Detail

      • cardinalDirection2DMap

        public static ICardinalDirection2DMapInt cardinalDirection2DMap​(int value)
        Creates a new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMap 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMap 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMap 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMap 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMap 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapInt 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapLong 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMapDouble 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 new ICardinalDirection2DMap 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 new ICardinalDirection2DMap 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.