Enum Constant and Description |
---|
ALWAYS
A line break is always inserted before the start of the element.
|
CHOP_DOWN_IF_LONG
A line break is inserted before the start of the element if it is a part
of list of elements of the same type and at least one of the elements was wrapped.
|
NONE
A line break is never inserted before the start of the element.
|
NORMAL
A line break is inserted before the start of the element if the right edge
of the element goes beyond the specified wrap margin.
|
Modifier and Type | Method and Description |
---|---|
static WrapType |
byLegacyRepresentation(int value)
Allows to retrieve wrap type by it's legacy non-type-safe representation (see
getLegacyRepresentation() ). |
int |
getLegacyRepresentation()
Wrapping types were used as a primitive constants during this enum introduction (e.g.
|
static WrapType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WrapType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WrapType ALWAYS
public static final WrapType NORMAL
public static final WrapType NONE
public static final WrapType CHOP_DOWN_IF_LONG
public static WrapType[] values()
for (WrapType c : WrapType.values()) System.out.println(c);
public static WrapType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static WrapType byLegacyRepresentation(int value)
getLegacyRepresentation()
).value
- legacy representation of the target wrap typelegacyRepresentation
is equal to the given value if any;
CHOP_DOWN_IF_LONG
otherwisepublic int getLegacyRepresentation()
CommonCodeStyleSettings.DO_NOT_WRAP
etc).
It's possible to map that legacy representation to the object-level enum member via byLegacyRepresentation(int)
.
Current getter exposes legacy value associated with the current object-level wrap type representation.