public static enum PaintUtil.ParityMode extends java.lang.Enum<PaintUtil.ParityMode>
Modifier and Type | Method and Description |
---|---|
boolean |
even()
Returns true for
EVEN . |
static PaintUtil.ParityMode |
invert(PaintUtil.ParityMode pm)
Returns inverted parity mode.
|
static PaintUtil.ParityMode |
of(int value)
Returns parity of the value.
|
static PaintUtil.ParityMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaintUtil.ParityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaintUtil.ParityMode EVEN
public static final PaintUtil.ParityMode ODD
public static PaintUtil.ParityMode[] values()
for (PaintUtil.ParityMode c : PaintUtil.ParityMode.values()) System.out.println(c);
public static PaintUtil.ParityMode 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 boolean even()
EVEN
.public static PaintUtil.ParityMode of(int value)
public static PaintUtil.ParityMode invert(PaintUtil.ParityMode pm)