Package com.tngtech.jgiven.annotation
Enum POJOFormat.BracketsEnum
- java.lang.Object
-
- java.lang.Enum<POJOFormat.BracketsEnum>
-
- com.tngtech.jgiven.annotation.POJOFormat.BracketsEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<POJOFormat.BracketsEnum>
- Enclosing class:
- POJOFormat
public static enum POJOFormat.BracketsEnum extends java.lang.Enum<POJOFormat.BracketsEnum>
Enumeration of opening/closing brackets pair :NONE
: no bracketsPARENTHESES
:(...)
SQUARE
:[...]
BRACES
:{...}
POINTY
:<...>
CHEVRONS
:<<...>>
DOUBLE_QUOTE
:"..."
SINGLE_QUOTE
:'...'
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRACES
CHEVRONS
DOUBLE_QUOTE
NONE
PARENTHESES
POINTY
SINGLE_QUOTE
SQUARE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClosing()
java.lang.String
getOpening()
static POJOFormat.BracketsEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static POJOFormat.BracketsEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final POJOFormat.BracketsEnum NONE
-
PARENTHESES
public static final POJOFormat.BracketsEnum PARENTHESES
-
SQUARE
public static final POJOFormat.BracketsEnum SQUARE
-
BRACES
public static final POJOFormat.BracketsEnum BRACES
-
POINTY
public static final POJOFormat.BracketsEnum POINTY
-
CHEVRONS
public static final POJOFormat.BracketsEnum CHEVRONS
-
DOUBLE_QUOTE
public static final POJOFormat.BracketsEnum DOUBLE_QUOTE
-
SINGLE_QUOTE
public static final POJOFormat.BracketsEnum SINGLE_QUOTE
-
-
Method Detail
-
values
public static POJOFormat.BracketsEnum[] 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 (POJOFormat.BracketsEnum c : POJOFormat.BracketsEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static POJOFormat.BracketsEnum 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 namejava.lang.NullPointerException
- if the argument is null
-
getOpening
public java.lang.String getOpening()
-
getClosing
public java.lang.String getClosing()
-
-