Enum Direction8

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Direction8>

    public enum Direction8
    extends java.lang.Enum<Direction8>
    • Field Detail

      • NORTH_WEST_MASK

        private static final int NORTH_WEST_MASK
      • WEST_MASK

        private static final int WEST_MASK
      • SOUTH_WEST_MASK

        private static final int SOUTH_WEST_MASK
      • SOUTH_MASK

        private static final int SOUTH_MASK
      • SOUTH_EAST_MASK

        private static final int SOUTH_EAST_MASK
      • EAST_MASK

        private static final int EAST_MASK
      • NORTH_EAST_MASK

        private static final int NORTH_EAST_MASK
      • NORTH_MASK

        private static final int NORTH_MASK
      • directions

        private final java.util.Set<Direction> directions
    • Constructor Detail

      • Direction8

        private Direction8​(Direction... p_i47954_3_)
    • Method Detail

      • values

        public static Direction8[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Direction8 c : Direction8.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Direction8 valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getDirections

        public java.util.Set<Direction> getDirections()