Long Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Long
class wraps a value of the primitive type long
in an object.
[Android.Runtime.Register("java/lang/Long", DoNotGenerateAcw=true)]
public sealed class Long : Java.Lang.Number, IConvertible, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IComparable
[<Android.Runtime.Register("java/lang/Long", DoNotGenerateAcw=true)>]
type Long = class
inherit Number
interface IConvertible
interface IComparable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
Java documentation for java.lang.Long
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Long(Int64) |
Constructs a newly allocated |
Long(String) |
Constructs a newly allocated |
Fields
Bytes |
The number of bytes used to represent a |
MaxValue |
A constant holding the maximum value a |
MinValue |
A constant holding the minimum value a |
Size |
The number of bits used to represent a |
Properties
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PeerReference | (Inherited from Object) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Number) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Number) |
Type |
The |
Methods
BitCount(Int64) |
Returns the number of one-bits in the two's complement binary
representation of the specified |
ByteValue() |
Returns the value of the specified number as a |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Compare(Int64, Int64) |
Compares two |
CompareTo(Long) |
Compares two |
CompareUnsigned(Int64, Int64) |
Compares two |
Decode(String) |
Decodes a |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
DivideUnsigned(Int64, Int64) |
Returns the unsigned quotient of dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. |
DoubleValue() |
Returns the value of this |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
FloatValue() |
Returns the value of this |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetLong(String) |
Determines the |
GetLong(String, Int64) |
Determines the |
GetLong(String, Long) |
Returns the |
HashCode(Int64) |
Returns a hash code for a |
HighestOneBit(Int64) |
Returns a |
IntValue() |
Returns the value of this |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
LongValue() |
Returns the value of this |
LowestOneBit(Int64) |
Returns a |
Max(Int64, Int64) |
Returns the greater of two |
Min(Int64, Int64) |
Returns the smaller of two |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
NumberOfLeadingZeros(Int64) |
Returns the number of zero bits preceding the highest-order
("leftmost") one-bit in the two's complement binary representation
of the specified |
NumberOfTrailingZeros(Int64) |
Returns the number of zero bits following the lowest-order ("rightmost")
one-bit in the two's complement binary representation of the specified
|
ParseLong(ICharSequence, Int32, Int32, Int32) |
Parses the |
ParseLong(String) |
Parses the string argument as a signed decimal |
ParseLong(String, Int32) |
Parses the string argument as a signed |
ParseLong(String, Int32, Int32, Int32) |
Parses the |
ParseUnsignedLong(ICharSequence, Int32, Int32, Int32) |
Parses the |
ParseUnsignedLong(String) |
Parses the string argument as an unsigned decimal |
ParseUnsignedLong(String, Int32) |
Parses the string argument as an unsigned |
ParseUnsignedLong(String, Int32, Int32, Int32) |
Parses the |
RemainderUnsigned(Int64, Int64) |
Returns the unsigned remainder from dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. |
Reverse(Int64) |
Returns the value obtained by reversing the order of the bits in the
two's complement binary representation of the specified |
ReverseBytes(Int64) |
Returns the value obtained by reversing the order of the bytes in the
two's complement representation of the specified |
RotateLeft(Int64, Int32) |
Returns the value obtained by rotating the two's complement binary
representation of the specified |
RotateRight(Int64, Int32) |
Returns the value obtained by rotating the two's complement binary
representation of the specified |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ShortValue() |
Returns the value of the specified number as a |
Signum(Int64) |
Returns the signum function of the specified |
Sum(Int64, Int64) |
Adds two |
ToArray<T>() | (Inherited from Object) |
ToBinaryString(Int64) |
Returns a string representation of the |
ToHexString(Int64) |
Returns a string representation of the |
ToOctalString(Int64) |
Returns a string representation of the |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
ToString(Int64) |
Returns a |
ToString(Int64, Int32) |
Returns a string representation of the first argument in the radix specified by the second argument. |
ToUnsignedString(Int64) |
Returns a string representation of the argument as an unsigned decimal value. |
ToUnsignedString(Int64, Int32) |
Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument. |
UnregisterFromRuntime() | (Inherited from Object) |
ValueOf(Int64) |
Returns a |
ValueOf(String) |
Returns a |
ValueOf(String, Int32) |
Returns a |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Operators
Explicit(Long to Int64) |
Explicit Interface Implementations
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |