Skip to content
Reference > Classes

Integer

Definition

Integer var = .... ;

Extends

Extended By

None

Description

An integer number

Method Summary

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

Method Definitions


constructor(i)

Integer integer = new Integer(Integer i)

Description

Initialize an Integer object

Parameter Definition

Name Type Description
i Integer  an Integer

highestOneBit()

Integer Integer::highestOneBit()

Description

Returns an int value with at most a single one-bit, in the position of the highest-order ("leftmost") one-bit in the specified int value


lowestOneBit()

Integer Integer::lowestOneBit()

Description

Returns an int value with at most a single one-bit, in the position of the lowest-order ("rightmost") one-bit in the specified int value


numberOfLeadingZeros()

Integer Integer::numberOfLeadingZeros()

Description

Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of the specified int value


numberOfTrailingZeros()

Integer Integer::numberOfTrailingZeros()

Description

Returns the number of zero bits following the lowest-order ("rightmost") one-bit in the two's complement binary representation of the specified int value