Method Summary |
|
public TrafficMask | and(TrafficMask mask) Peforms an AND operation on this mask with the specified
mask and returns the result. |
public static TrafficMask | getInstance(int interestOps) Returns an appropriate
TrafficMask instance from the
specified interestOps. |
public int | getInterestOps() Returns an interestOps of
SelectionKey for this mask. |
public String | getName() Returns the name of this mask. |
public boolean | isReadable() Returns true if this mask allows a read operation. |
public boolean | isWritable() Returns true if this mask allows a write operation. |
public TrafficMask | not() Returns a negated mask of this one. |
public TrafficMask | or(TrafficMask mask) Peforms an OR operation on this mask with the specified
mask and returns the result. |
public String | toString() |
public TrafficMask | xor(TrafficMask mask) Peforms an XOR operation on this mask with the specified
mask and returns the result. |