libperun

Class std.rt.Integer

Synopsis

public final class Integer extends Comparable< Integer >

Implicit managed wrapper for the signed integer types.

Fields

Constructors

public Integer();

Construct the integer with value 0.

public Integer(long value);

Construct the integer with the specified value.

Methods

public long get();

Get the integer value.

public Integer opAdd(Integer b);

Add two integers.

public Integer opSub(Integer b);

Subtract two integers.

public Integer opMul(Integer b);

Multiply two integers.

public Integer opDiv(Integer b);

Divide this integer by another.

public Integer opMod(Integer b);

Return this integer modulo another.

public Integer opNegate();

Return the negation of this integer.

public Integer opInvert();

Return the bit-inverse of this integer.

public bool opEquals(Object b);

Compare two integers.

public int opCompare(Integer b);

No description given

public dword_t hash();

No description given