|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgroup.relacs.types.Flag
public final class Flag
The Flag class wraps a value of the relacs daemon type
"flag" in an object. A flag is a boolean type that can assume the
values {0, 1}.
| Field Summary | |
|---|---|
static int |
SIZE
Size of this object in bytes |
| Constructor Summary | |
|---|---|
Flag(int value)
Creates a Flag object containing the specified
value. |
|
| Method Summary | |
|---|---|
int |
getValue()
Returned the wrapped value. |
static void |
marshal(java.io.ObjectOutput msg,
boolean value)
Marshals the specified flag to an outgoing message. |
static boolean |
unmarshal(byte value)
Unmarshals a flag from a byte. |
static boolean |
unmarshal(java.io.ObjectInput msg)
Unmarshals a flag from an incoming message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE
| Constructor Detail |
|---|
public Flag(int value)
Flag object containing the specified
value.
| Method Detail |
|---|
public int getValue()
public static void marshal(java.io.ObjectOutput msg,
boolean value)
throws java.io.IOException
java.io.IOException
public static boolean unmarshal(java.io.ObjectInput msg)
throws java.io.IOException
java.io.IOExceptionpublic static boolean unmarshal(byte value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||