Android Guides | Samples

Java.Lang.Enum Class

The superclass of all enumerated types.

See Also: Enum

Syntax

[Android.Runtime.Register("java/lang/Enum", DoNotGenerateAcw=true)]
public abstract class Enum : Object, ISerializable, IComparable, IDisposable

Remarks

The superclass of all enumerated types. Actual enumeration types inherit from this class, but extending this class does not make a class an enumeration type, since the compiler needs to generate special information for it.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.Enum are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.
Constructor for constants of enum subtypes.

Public Properties

[read-only]
DeclaringClassClass. Returns the enum constant's declaring class.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CompareTo(Object) : Int32
override
Equals(Object) : Boolean
Compares this object with the specified object and indicates if they are equal.
override
GetHashCode() : Int32
Returns an integer hash code for this object.
Name() : String
Returns the name of this enum constant.
Ordinal() : Int32
Returns the position of the enum constant in the declaration.
static
ValueOf(Class, String) : Object

Protected Methods

override
Clone() : Object
Enum objects are singletons, they may not be cloned.