Sequence

Inheritance: java.lang.Object

public class Sequence

Represents sequence Aztec codes with encoging logic.

Constructors

Constructor Description
Sequence(int state) Initializes a new instance of the Sequence class with specified state id.
Sequence(Sequence sequence) Copy constructor.

Methods

Method Description
append(Token token) Adds the token to the end of sequence.
clear() Removes all elements from the sequence.
equals(Object arg0)
generateBitString() Generates binary string.
getBackTo()
getBytesCountForBinaryState() Returns last bytes number in Binary state.
getClass()
getCurLen() Returns current total length in bits.
getState()
hashCode()
latchToBinary() Latch to Binary state.
notify()
notifyAll()
returnsFromBinary()
setBackTo(int value)
setState(int value)
toString()
tryAppendToDoubleChars(byte value) Tries append new char with previous (special case with double chars in Punctuaction state).
wait()
wait(long arg0)
wait(long arg0, int arg1)

Sequence(int state)

public Sequence(int state)

Initializes a new instance of the Sequence class with specified state id.

Parameters:

Parameter Type Description
state int State id.

Sequence(Sequence sequence)

public Sequence(Sequence sequence)

Copy constructor.

Parameters:

Parameter Type Description
sequence Sequence The source sequence.

append(Token token)

public void append(Token token)

Adds the token to the end of sequence.

Parameters:

Parameter Type Description
token Token The token to be added to the end of sequence.

clear()

public void clear()

Removes all elements from the sequence.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

generateBitString()

public String generateBitString()

Generates binary string.

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

getBackTo()

public int getBackTo()

Returns: int

getBytesCountForBinaryState()

public int getBytesCountForBinaryState()

Returns last bytes number in Binary state.

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCurLen()

public int getCurLen()

Returns current total length in bits.

Returns: int

getState()

public int getState()

Returns: int

hashCode()

public native int hashCode()

Returns: int

latchToBinary()

public void latchToBinary()

Latch to Binary state.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

returnsFromBinary()

public void returnsFromBinary()

setBackTo(int value)

public void setBackTo(int value)

Parameters:

Parameter Type Description
value int

setState(int value)

public void setState(int value)

Parameters:

Parameter Type Description
value int

toString()

public String toString()

Returns: java.lang.String

tryAppendToDoubleChars(byte value)

public boolean tryAppendToDoubleChars(byte value)

Tries append new char with previous (special case with double chars in Punctuaction state).

Parameters:

Parameter Type Description
value byte The new chars.

Returns: boolean - Returns true if success, returns false otherwise.

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