Token

Inheritance: java.lang.Object

public class Token

Represents one Aztec code.

Constructors

Constructor Description
Token(int value, int numberBits, String info) Initializes a new instance of the Token class with specified value, numder of bits and human text.

Fields

Field Description
Info Human version of this code.
NumberBits Number of bits in this code.
Value Value of this code.

Methods

Method Description
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toBitString() Generates binary string.
toString() Returns a string that represents the current object.
wait()
wait(long arg0)
wait(long arg0, int arg1)

Token(int value, int numberBits, String info)

public Token(int value, int numberBits, String info)

Initializes a new instance of the Token class with specified value, numder of bits and human text.

Parameters:

Parameter Type Description
value int The value Aztec code.
numberBits int The number bits of code.
info java.lang.String The human text.

Info

public final String Info

Human version of this code.

NumberBits

public final int NumberBits

Number of bits in this code.

Value

public final int Value

Value of this code.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toBitString()

public String toBitString()

Generates binary string.

Returns: java.lang.String - The binary string.

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - The current human text.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int