public class IeBinaryStateInformation extends InformationElement
Constructor and Description |
---|
IeBinaryStateInformation(int value)
Creates a BSI (binary state information) information element.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBinaryState(int position)
Returns true if the bit at the given position is 1 and false otherwise.
|
int |
getValue() |
java.lang.String |
toString() |
public IeBinaryStateInformation(int value)
value
- the bits of value represent the binary states. The first binary state is the LSB (least significant
bit) of value.public int getValue()
public boolean getBinaryState(int position)
position
- the position in the bit string. Range: 1-32. Bit1 is the LSB and bit32 the MSB of the value returned
by getValue()
.public java.lang.String toString()
toString
in class java.lang.Object