Enum PatternType

    • Enum Constant Detail

      • SQUARE_BOTTOM_LEFT

        public static final PatternType SQUARE_BOTTOM_LEFT
      • SQUARE_BOTTOM_RIGHT

        public static final PatternType SQUARE_BOTTOM_RIGHT
      • SQUARE_TOP_LEFT

        public static final PatternType SQUARE_TOP_LEFT
      • SQUARE_TOP_RIGHT

        public static final PatternType SQUARE_TOP_RIGHT
      • STRIPE_BOTTOM

        public static final PatternType STRIPE_BOTTOM
      • STRIPE_TOP

        public static final PatternType STRIPE_TOP
      • STRIPE_LEFT

        public static final PatternType STRIPE_LEFT
      • STRIPE_RIGHT

        public static final PatternType STRIPE_RIGHT
      • STRIPE_CENTER

        public static final PatternType STRIPE_CENTER
      • STRIPE_MIDDLE

        public static final PatternType STRIPE_MIDDLE
      • STRIPE_DOWNRIGHT

        public static final PatternType STRIPE_DOWNRIGHT
      • STRIPE_DOWNLEFT

        public static final PatternType STRIPE_DOWNLEFT
      • STRIPE_SMALL

        public static final PatternType STRIPE_SMALL
      • STRAIGHT_CROSS

        public static final PatternType STRAIGHT_CROSS
      • TRIANGLE_BOTTOM

        public static final PatternType TRIANGLE_BOTTOM
      • TRIANGLE_TOP

        public static final PatternType TRIANGLE_TOP
      • TRIANGLES_BOTTOM

        public static final PatternType TRIANGLES_BOTTOM
      • TRIANGLES_TOP

        public static final PatternType TRIANGLES_TOP
      • DIAGONAL_LEFT

        public static final PatternType DIAGONAL_LEFT
      • DIAGONAL_RIGHT

        public static final PatternType DIAGONAL_RIGHT
      • DIAGONAL_LEFT_MIRROR

        public static final PatternType DIAGONAL_LEFT_MIRROR
      • DIAGONAL_RIGHT_MIRROR

        public static final PatternType DIAGONAL_RIGHT_MIRROR
      • CIRCLE_MIDDLE

        public static final PatternType CIRCLE_MIDDLE
      • RHOMBUS_MIDDLE

        public static final PatternType RHOMBUS_MIDDLE
      • HALF_VERTICAL

        public static final PatternType HALF_VERTICAL
      • HALF_HORIZONTAL

        public static final PatternType HALF_HORIZONTAL
      • HALF_VERTICAL_MIRROR

        public static final PatternType HALF_VERTICAL_MIRROR
      • HALF_HORIZONTAL_MIRROR

        public static final PatternType HALF_HORIZONTAL_MIRROR
      • CURLY_BORDER

        public static final PatternType CURLY_BORDER
      • GRADIENT_UP

        public static final PatternType GRADIENT_UP
    • Method Detail

      • values

        public static PatternType[] 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 (PatternType c : PatternType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PatternType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getIdentifier

        @NotNull
        public String getIdentifier()
        Returns the identifier used to represent this pattern type
        Returns:
        the pattern's identifier
      • getByIdentifier

        @Contract("null -> null")
        @Nullable
        public static PatternType getByIdentifier​(@Nullable
                                                  String identifier)
        Returns the pattern type which matches the passed identifier or null if no matches are found
        Parameters:
        identifier - the identifier
        Returns:
        the matched pattern type or null