public enum Side extends Enum<Side>
Modifier and Type | Method and Description |
---|---|
char |
toChar()
Returns the corresponding char constant.
|
static Side |
valueOf(char c)
Get the enum corresponding to specified char.
|
static Side |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Side[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Side PORT
public static final Side STARBOARD
public static Side[] values()
for (Side c : Side.values()) System.out.println(c);
public static Side valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic char toChar()
public static Side valueOf(char c)
c
- Char indicator for SideCopyright (C) 2010-2015 Java Marine API authors. All Rights Reserved.