org.glassfish.grizzly.util
Class ArrayIOEventMask

java.lang.Object
  extended by org.glassfish.grizzly.util.ArrayIOEventMask
All Implemented Interfaces:
IOEventMask

public class ArrayIOEventMask
extends Object
implements IOEventMask

Array based IOEventMask implementation

Author:
Alexey Stashok

Field Summary
 
Fields inherited from interface org.glassfish.grizzly.util.IOEventMask
ALL_EVENTS_MASK, CLIENT_EVENTS_MASK, SERVER_EVENTS_MASK
 
Constructor Summary
ArrayIOEventMask()
           
ArrayIOEventMask(boolean enableAllInterests)
           
ArrayIOEventMask(IOEvent... ioEvents)
          Costructs IOEventMask, with specific enabled interests
ArrayIOEventMask(IOEventMask mask)
          Copy constructor
 
Method Summary
 IOEventMask and(IOEventMask mask)
           
 IOEventMask inv()
           
 boolean isInterested(IOEvent ioEvent)
           
 IOEventMask or(IOEventMask mask)
           
 void setInterested(IOEvent ioEvent, boolean isInterested)
           
 String toString()
           
 IOEventMask xor(IOEventMask mask)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayIOEventMask

public ArrayIOEventMask()

ArrayIOEventMask

public ArrayIOEventMask(boolean enableAllInterests)

ArrayIOEventMask

public ArrayIOEventMask(IOEvent... ioEvents)
Costructs IOEventMask, with specific enabled interests

Parameters:
ioEvents - the array of IOEvents, which are initially interested.

ArrayIOEventMask

public ArrayIOEventMask(IOEventMask mask)
Copy constructor

Parameters:
mask - pattern IOEventMask
Method Detail

isInterested

public boolean isInterested(IOEvent ioEvent)
Specified by:
isInterested in interface IOEventMask

setInterested

public void setInterested(IOEvent ioEvent,
                          boolean isInterested)
Specified by:
setInterested in interface IOEventMask

or

public IOEventMask or(IOEventMask mask)
Specified by:
or in interface IOEventMask

and

public IOEventMask and(IOEventMask mask)
Specified by:
and in interface IOEventMask

xor

public IOEventMask xor(IOEventMask mask)
Specified by:
xor in interface IOEventMask

inv

public IOEventMask inv()
Specified by:
inv in interface IOEventMask

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 SUN Microsystems. All Rights Reserved.