|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jSyncManager.SJS.Adapters.SMTPServer.AbstractSMTPServer.State
public static class AbstractSMTPServer.State
Stores a mutable long for the masks which represent the state information
Field Summary | |
---|---|
(package private) long |
state
the actual state mask of bits |
Constructor Summary | |
---|---|
AbstractSMTPServer.State()
creates a state with no bits set |
|
AbstractSMTPServer.State(long s)
creates a state with some bits initially set |
Method Summary | |
---|---|
boolean |
areBitsSet(long mask)
Checks whether the given bits are currently set in the state |
void |
clearBits(long mask)
Removes the bits specified in the mask from the state |
long |
getState()
get the current state value |
void |
insertBits(long mask)
inserts the given bits into the current state |
void |
setState(long s)
Sets the state to exactly the given value, any current bits are cleared |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
long state
Constructor Detail |
---|
public AbstractSMTPServer.State()
public AbstractSMTPServer.State(long s)
s
- the initial state valueMethod Detail |
---|
public boolean areBitsSet(long mask)
mask
- long value of bits to check for
public void setState(long s)
s
- the new state valuepublic long getState()
public void insertBits(long mask)
mask
- public void clearBits(long mask)
mask
-
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |