Package org.opennms.enlinkd.generator
Enum TopologyGenerator.Topology
- java.lang.Object
-
- java.lang.Enum<TopologyGenerator.Topology>
-
- org.opennms.enlinkd.generator.TopologyGenerator.Topology
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TopologyGenerator.Topology>
- Enclosing class:
- TopologyGenerator
public static enum TopologyGenerator.Topology extends java.lang.Enum<TopologyGenerator.Topology>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopologyGenerator.Topology
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TopologyGenerator.Topology[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ring
public static final TopologyGenerator.Topology ring
-
random
public static final TopologyGenerator.Topology random
-
complete
public static final TopologyGenerator.Topology complete
-
-
Method Detail
-
values
public static TopologyGenerator.Topology[] 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 (TopologyGenerator.Topology c : TopologyGenerator.Topology.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TopologyGenerator.Topology 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
-
-