public class bitSeq
{
// Constructors
public bitSeq(byte seq); §bitSeq
public bitSeq(int seq); §bitSeq
public bitSeq(long seq); §bitSeq
public bitSeq(String seq); §bitSeq
// Methods
public void assign(byte seq); §assign
public void assign(int seq); §assign
public void assign(long seq); §assign
public void assign(String seq); §assign
public int getCurrent(); §getCurrent
public bit nextBit(); §nextBit
public String toString(); §toString
public boolean wasLastBit(); §wasLastBit
}
This class represents sequences of bits, and does conversions and comparisons. Provided as is for CS420.
bitSeq
public bitSeq(byte seq);
seq
- the byte representation of up to 8 bits, to be converted to a bit sequence
public bitSeq(int seq);
seq
- the int representation of up to 32 bits, to be converted to a bit sequence
public bitSeq(long seq);
seq
- the long representation of up to 128 bits, to be converted to a bit sequence
public bitSeq(String seq);
seq
- the String representation of bits, to be converted to a bit sequence
public void assign(byte seq)
seq
- the byte representation of up to 8 bits, to be assigned to the bit sequence
public void assign(int seq)
seq
- the int representation of up to 32 bits, to be assigned to the bit sequence
public void assign(long seq)
seq
- the long representation of up to 128 bits, to be assigned to the bit sequence
public void assign(String seq)
seq
- the string representation of bits, to be assigned to the bit sequence
public int getCurrent()
public bit nextBit()
public String toString()
public boolean wasLastBit()