|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetstream.protocol.Characteristic.BitCodec
public static class Characteristic.BitCodec
A special utility method which can encode and decode a set of characteristics into a bitwise representation in a 32-bit unsigned integer.
| Constructor Summary | |
|---|---|
Characteristic.BitCodec()
|
|
| Method Summary | |
|---|---|
static java.util.Set<? extends Characteristic> |
valueOf(int value)
Decodes the unsigned uninteger into a set containing all of the various constants. |
static int |
valueOf(java.util.Set<Characteristic> chars)
Encodes characteristic contants into an unsigned 32-bit integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Characteristic.BitCodec()
| Method Detail |
|---|
public static java.util.Set<? extends Characteristic> valueOf(int value)
value - value with the bit encoded characteristics
public static int valueOf(java.util.Set<Characteristic> chars)
chars - a set of characteristic contants to encode into unsigned integer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||