public class Enum extends Object implements Comparable, Serializable
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Throws CloneNotSupportedException
|
int |
compareTo(Object o)
Compares this enum with the specified object.
|
boolean |
equals(Object o)
Returns true if the specified object equals this enum.
|
int |
hashCode()
Returns a hash code for this enum
|
String |
name()
Returns the name of this enum
|
int |
ordinal()
Returns an integer value for this enum
|
String |
toString()
Returns the name of this enum.
|
public String toString()
public final int ordinal()
public final String name()
public final Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public final int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
o
- The Object to be comparedClassCastException
- if input object does not have the same class type as this objectpublic final boolean equals(Object o)
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.