com.j_spaces.core.client
Class NotifyModifiers

java.lang.Object
  extended by com.j_spaces.core.client.NotifyModifiers

public class NotifyModifiers
extends Object

The Modifier class provides static methods and constants to decode notify types modifiers. The sets of modifiers are represented as integers with distinct bit positions representing different modifiers.


Field Summary
static int NOTIFY_ALL
          The int value representing the Notify All modifier.
static int NOTIFY_LEASE_EXPIRATION
          The int value representing the Notify Lease Expiration modifier.
static int NOTIFY_NONE
          The int value representing the Notify None modifier.
static int NOTIFY_TAKE
          The int value representing the Notify Take modifier.
static int NOTIFY_UPDATE
          The int value representing the Notify Update modifier.
static int NOTIFY_WRITE
          The int value representing the Notify Write modifier.
 
Constructor Summary
NotifyModifiers()
           
 
Method Summary
static boolean isALL(int mod)
          Return true if the integer argument includes the all modifier, false otherwise.
static boolean isLeaseExpiration(int mod)
          Return true if the integer argument includes the lease expiration modifier, false otherwise.
static boolean isTake(int mod)
          Return true if the integer argument includes the take modifier, false otherwise.
static boolean isUpdate(int mod)
          Return true if the integer argument includes the update modifier, false otherwise.
static boolean isWrite(int mod)
          Return true if the integer argument includes the write modifier, false otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFY_NONE

public static final int NOTIFY_NONE
The int value representing the Notify None modifier.

See Also:
Constant Field Values

NOTIFY_WRITE

public static final int NOTIFY_WRITE
The int value representing the Notify Write modifier.

See Also:
Constant Field Values

NOTIFY_UPDATE

public static final int NOTIFY_UPDATE
The int value representing the Notify Update modifier.

See Also:
Constant Field Values

NOTIFY_TAKE

public static final int NOTIFY_TAKE
The int value representing the Notify Take modifier.

See Also:
Constant Field Values

NOTIFY_LEASE_EXPIRATION

public static final int NOTIFY_LEASE_EXPIRATION
The int value representing the Notify Lease Expiration modifier.

See Also:
Constant Field Values

NOTIFY_ALL

public static final int NOTIFY_ALL
The int value representing the Notify All modifier.

See Also:
Constant Field Values
Constructor Detail

NotifyModifiers

public NotifyModifiers()
Method Detail

isWrite

public static boolean isWrite(int mod)
Return true if the integer argument includes the write modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the public modifier; false otherwise.

isUpdate

public static boolean isUpdate(int mod)
Return true if the integer argument includes the update modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the update modifier; false otherwise.

isTake

public static boolean isTake(int mod)
Return true if the integer argument includes the take modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the take modifier; false otherwise.

isLeaseExpiration

public static boolean isLeaseExpiration(int mod)
Return true if the integer argument includes the lease expiration modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the lease expiration modifier; false otherwise.

isALL

public static boolean isALL(int mod)
Return true if the integer argument includes the all modifier, false otherwise.

Parameters:
mod - a set of modifiers
Returns:
true if mod includes the all modifier; false otherwise.