Table of Contents

Class Long

Namespace
Java.Lang
Assembly
MASES.JNet.dll
public class Long : Number, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable, INativeConvertible<Long, long>
Inheritance
JVMBridgeBase
JVMBridgeBase<Serializable>
Long
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Serializable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Serializable>.IsAssignableFrom<T>()
JVMBridgeBase<Serializable>.Execute<T>(params T[])
JVMBridgeBase<Serializable>.DynBridgeClazz
JVMBridgeBase<Serializable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Long()

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

public Long()

Long(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

public Long(params object[] args)

Parameters

args object[]

Properties

BYTES

public static int BYTES { get; }

Property Value

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

MAX_VALUE

public static long MAX_VALUE { get; }

Property Value

long

MIN_VALUE

public static long MIN_VALUE { get; }

Property Value

long

SIZE

public static int SIZE { get; }

Property Value

int

TYPE

public static Class TYPE { get; }

Property Value

Class

Methods

BitCount(long)

public static int BitCount(long arg0)

Parameters

arg0 long

long

Returns

int

int

Compare(long, long)

public static int Compare(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

int

int

CompareTo(Long)

public int CompareTo(Long arg0)

Parameters

arg0 Long

Long

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

CompareUnsigned(long, long)

public static int CompareUnsigned(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

int

int

Decode(String)

public static Long Decode(String arg0)

Parameters

arg0 String

String

Returns

Long

Long

Exceptions

NumberFormatException

DivideUnsigned(long, long)

public static long DivideUnsigned(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

GetLong(String)

public static Long GetLong(String arg0)

Parameters

arg0 String

String

Returns

Long

Long

GetLong(String, Long)

public static Long GetLong(String arg0, Long arg1)

Parameters

arg0 String

String

arg1 Long

Long

Returns

Long

Long

GetLong(String, long)

public static Long GetLong(String arg0, long arg1)

Parameters

arg0 String

String

arg1 long

long

Returns

Long

Long

HashCode(long)

public static int HashCode(long arg0)

Parameters

arg0 long

long

Returns

int

int

HighestOneBit(long)

public static long HighestOneBit(long arg0)

Parameters

arg0 long

long

Returns

long

long

LowestOneBit(long)

public static long LowestOneBit(long arg0)

Parameters

arg0 long

long

Returns

long

long

Max(long, long)

public static long Max(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

Min(long, long)

public static long Min(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

NumberOfLeadingZeros(long)

public static int NumberOfLeadingZeros(long arg0)

Parameters

arg0 long

long

Returns

int

int

NumberOfTrailingZeros(long)

public static int NumberOfTrailingZeros(long arg0)

Parameters

arg0 long

long

Returns

int

int

ParseLong(CharSequence, int, int, int)

public static long ParseLong(CharSequence arg0, int arg1, int arg2, int arg3)

Parameters

arg0 CharSequence

CharSequence

arg1 int

int

arg2 int

int

arg3 int

int

Returns

long

long

Exceptions

NumberFormatException

ParseLong(String)

public static long ParseLong(String arg0)

Parameters

arg0 String

String

Returns

long

long

Exceptions

NumberFormatException

ParseLong(String, int)

public static long ParseLong(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

long

long

Exceptions

NumberFormatException

ParseUnsignedLong(CharSequence, int, int, int)

public static long ParseUnsignedLong(CharSequence arg0, int arg1, int arg2, int arg3)

Parameters

arg0 CharSequence

CharSequence

arg1 int

int

arg2 int

int

arg3 int

int

Returns

long

long

Exceptions

NumberFormatException

ParseUnsignedLong(String)

public static long ParseUnsignedLong(String arg0)

Parameters

arg0 String

String

Returns

long

long

Exceptions

NumberFormatException

ParseUnsignedLong(String, int)

public static long ParseUnsignedLong(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

long

long

Exceptions

NumberFormatException

RemainderUnsigned(long, long)

public static long RemainderUnsigned(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

Reverse(long)

public static long Reverse(long arg0)

Parameters

arg0 long

long

Returns

long

long

ReverseBytes(long)

public static long ReverseBytes(long arg0)

Parameters

arg0 long

long

Returns

long

long

RotateLeft(long, int)

public static long RotateLeft(long arg0, int arg1)

Parameters

arg0 long

long

arg1 int

int

Returns

long

long

RotateRight(long, int)

public static long RotateRight(long arg0, int arg1)

Parameters

arg0 long

long

arg1 int

int

Returns

long

long

Signum(long)

public static int Signum(long arg0)

Parameters

arg0 long

long

Returns

int

int

Sum(long, long)

public static long Sum(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

ToBinaryString(long)

public static String ToBinaryString(long arg0)

Parameters

arg0 long

long

Returns

String

String

ToHexString(long)

public static String ToHexString(long arg0)

Parameters

arg0 long

long

Returns

String

String

ToJVM(long)

Returns the Long from the clrValue instance

public static Long ToJVM(long clrValue)

Parameters

clrValue long

The long of CLR

Returns

Long

The converted Long

ToOctalString(long)

public static String ToOctalString(long arg0)

Parameters

arg0 long

long

Returns

String

String

ToString(long)

public static String ToString(long arg0)

Parameters

arg0 long

long

Returns

String

String

ToString(long, int)

public static String ToString(long arg0, int arg1)

Parameters

arg0 long

long

arg1 int

int

Returns

String

String

ToUnsignedString(long)

public static String ToUnsignedString(long arg0)

Parameters

arg0 long

long

Returns

String

String

ToUnsignedString(long, int)

public static String ToUnsignedString(long arg0, int arg1)

Parameters

arg0 long

long

arg1 int

int

Returns

String

String

ValueOf(String)

public static Long ValueOf(String arg0)

Parameters

arg0 String

String

Returns

Long

Long

Exceptions

NumberFormatException

ValueOf(String, int)

public static Long ValueOf(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

Long

Long

Exceptions

NumberFormatException

ValueOf(long)

public static Long ValueOf(long arg0)

Parameters

arg0 long

long

Returns

Long

Long

Operators

implicit operator Comparable(Long)

Converter from Long to Comparable

public static implicit operator Comparable(Long t)

Parameters

t Long

Returns

Comparable

implicit operator long(Long)

Converter from Long to long

public static implicit operator long(Long b)

Parameters

b Long

Returns

long

implicit operator long?(Long)

Converter from Long to Nullable<T>

public static implicit operator long?(Long b)

Parameters

b Long

Returns

long?

implicit operator Long(long)

Converter from long to Long

public static implicit operator Long(long b)

Parameters

b long

Returns

Long

implicit operator Long(long?)

Converter from Nullable<T> to Long

public static implicit operator Long(long? b)

Parameters

b long?

Returns

Long