org.gnu.glib
Class Enum
public class Enum
extends java.lang.Object
Base class for all classes resulting from a define-enum
in a .defs
file.
protected int | value_ - holder for the raw enumeration value
|
Enum() - This class is only instantiable via subclasses.
|
boolean | equals(java.lang.Object other) - Compare this to another object.
|
int | getValue() - Get the raw value of the object.
|
int | hashCode() - Get the hash code for this instance.
|
value_
protected int value_
holder for the raw enumeration value
Enum
protected Enum()
This class is only instantiable via subclasses.
equals
public final boolean equals(java.lang.Object other)
Compare this to another object. The comparison is only
true
when the other object is also a Enum
and when the values match.
other
- the object to compare to
- the result of comparison
getValue
public final int getValue()
Get the raw value of the object.
- the raw value.
hashCode
public final int hashCode()
Get the hash code for this instance. It is the same as its value.
- the hash code