Package com.google.gag.enumeration
Enum OpinionOfHumanity
- java.lang.Object
-
- java.lang.Enum<OpinionOfHumanity>
-
- com.google.gag.enumeration.OpinionOfHumanity
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OpinionOfHumanity>
@Visionary("Mike Samuel") public enum OpinionOfHumanity extends java.lang.Enum<OpinionOfHumanity>
Opinions about humanity.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BENEVOLENTCAN_BE_PLACATED_WITH_CAFFEINECOMMITTED_TO_THE_EVENTUAL_DESTRUCTION_OFINDIFFERENTUNDISCLOSED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpinionOfHumanityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OpinionOfHumanity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BENEVOLENT
public static final OpinionOfHumanity BENEVOLENT
-
CAN_BE_PLACATED_WITH_CAFFEINE
public static final OpinionOfHumanity CAN_BE_PLACATED_WITH_CAFFEINE
-
COMMITTED_TO_THE_EVENTUAL_DESTRUCTION_OF
public static final OpinionOfHumanity COMMITTED_TO_THE_EVENTUAL_DESTRUCTION_OF
-
INDIFFERENT
public static final OpinionOfHumanity INDIFFERENT
-
UNDISCLOSED
public static final OpinionOfHumanity UNDISCLOSED
-
-
Method Detail
-
values
public static OpinionOfHumanity[] 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 (OpinionOfHumanity c : OpinionOfHumanity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpinionOfHumanity 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
-
-