Table of Contents

Class Enum

Namespace
Java.Lang
Assembly
MASES.JNet.dll
public class Enum : JVMBridgeBase<Enum>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEquatable<Enum>
Inheritance
Enum
Implements
Inherited Members
JVMBridgeBase.ReferenceEqualsJVM(JVMBridgeBase, JVMBridgeBase)
JVMBridgeBase.Equals(IJVMBridgeBase)
Extension Methods

Constructors

Enum()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Enum class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Enum()

Enum(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Enum class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Enum(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

DeclaringClass

public Class DeclaringClass { get; }

Property Value

Class

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

CompareTo(Enum)

public int CompareTo(Enum arg0)

Parameters

arg0 Enum

Enum

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

Equals(Enum)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Enum other)

Parameters

other Enum

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Name()

public String Name()

Returns

String

String

Ordinal()

public int Ordinal()

Returns

int

int

ValueOf(Class, String)

public static Enum ValueOf(Class arg0, String arg1)

Parameters

arg0 Class

Class

arg1 String

String

Returns

Enum

Enum

Operators

operator ==(Enum, Enum)

public static bool operator ==(Enum left, Enum right)

Parameters

left Enum
right Enum

Returns

bool

implicit operator Serializable(Enum)

Converter from Enum to Serializable

public static implicit operator Serializable(Enum t)

Parameters

t Enum

Returns

Serializable

implicit operator Comparable(Enum)

Converter from Enum to Comparable

public static implicit operator Comparable(Enum t)

Parameters

t Enum

Returns

Comparable

operator !=(Enum, Enum)

public static bool operator !=(Enum left, Enum right)

Parameters

left Enum
right Enum

Returns

bool