Skip to content
Reference > Classes

Long

Definition

Long var = .... ;

Extends

Extended By

None

Description

A number of type Long.

Method Summary

Owner Name Return Type Description
Long constructor(l) Object Initialize a Long object.
Long byteValue() Byte Returns the value of this Long as a byte after a narrowing primitive conversion.
Object getClassName() String Returns the string name of this object's class type.
Long highestOneBit() Long Returns a Long value with at most a single one-bit, in the position of the highest-order ("leftmost") one-bit in this Long.
Long lowestOneBit() Long Returns a Long value with at most a single one-bit, in the position of the lowest-order ("rightmost") one-bit in this Long.
Long numberOfLeadingZeros() Integer Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of this Long.
Long numberOfTrailingZeros() Integer Returns the number of zero bits following the lowest-order ("rightmost") one-bit in the two's complement binary representation of this Long.
Object toJson() String Returns a json representation of this object.

Method Definitions


constructor(l)

Long long = new Long(Long l)

Description

Initialize a Long object.

Parameter Definition

Name Type Description
l Long  a Long

byteValue()

Byte Long::byteValue()

Description

Returns the value of this Long as a byte after a narrowing primitive conversion.


highestOneBit()

Long Long::highestOneBit()

Description

Returns a Long value with at most a single one-bit, in the position of the highest-order ("leftmost") one-bit in this Long.


lowestOneBit()

Long Long::lowestOneBit()

Description

Returns a Long value with at most a single one-bit, in the position of the lowest-order ("rightmost") one-bit in this Long.


numberOfLeadingZeros()

Integer Long::numberOfLeadingZeros()

Description

Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of this Long.


numberOfTrailingZeros()

Integer Long::numberOfTrailingZeros()

Description

Returns the number of zero bits following the lowest-order ("rightmost") one-bit in the two's complement binary representation of this Long.