public enum EdgeType extends Enum<EdgeType>
Enum Constant and Description |
---|
DIRECTED |
UNDIRECTED |
Modifier and Type | Method and Description |
---|---|
static EdgeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EdgeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EdgeType DIRECTED
public static final EdgeType UNDIRECTED
public static EdgeType[] values()
for (EdgeType c : EdgeType.values()) System.out.println(c);
public static EdgeType 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 nullCopyright © 2015 University of Glasgow. All rights reserved.