jgroup.relacs.types
Class Flag

java.lang.Object
  extended by jgroup.relacs.types.Flag

public final class Flag
extends java.lang.Object

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}.

Since:
Jgroup 1.2
Author:
Alberto Montresor, Hein Meling

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

SIZE

public static final int SIZE
Size of this object in bytes

See Also:
Constant Field Values
Constructor Detail

Flag

public Flag(int value)
Creates a Flag object containing the specified value.

Method Detail

getValue

public int getValue()
Returned the wrapped value.


marshal

public static void marshal(java.io.ObjectOutput msg,
                           boolean value)
                    throws java.io.IOException
Marshals the specified flag to an outgoing message.

Throws:
java.io.IOException

unmarshal

public static boolean unmarshal(java.io.ObjectInput msg)
                         throws java.io.IOException
Unmarshals a flag from an incoming message.

Throws:
java.io.IOException

unmarshal

public static boolean unmarshal(byte value)
Unmarshals a flag from a byte.



Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.