|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.flag.Flag<T> cz.cuni.amis.utils.flag.ImmutableFlag<T> cz.cuni.amis.utils.flag.ImmutableReasonFlag<T,R>
public class ImmutableReasonFlag<T,R>
Reason flag whose value cannot be set.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cz.cuni.amis.utils.flag.Flag |
---|
Flag.DoInSync<T> |
Field Summary |
---|
Fields inherited from class cz.cuni.amis.utils.flag.ImmutableFlag |
---|
flag |
Constructor Summary | |
---|---|
ImmutableReasonFlag(IReasonFlag<T,R> flag)
|
Method Summary | |
---|---|
void |
setFlag(T newValue,
R reasonForChange)
Changes the flag and informs all listeners. |
Methods inherited from class cz.cuni.amis.utils.flag.ImmutableFlag |
---|
addListener, addStrongListener, clearListeners, defreeze, freeze, getFlag, getImmutable, inSync, isFrozen, isListenning, removeListener, setFlag |
Methods inherited from class cz.cuni.amis.utils.flag.Flag |
---|
inSyncInner, isNone, isOne, removeAllListeners, waitFor, waitFor, waitForChange, waitForChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.utils.flag.IFlag |
---|
addListener, addStrongListener, clearListeners, defreeze, freeze, getFlag, getImmutable, inSync, isFrozen, isListenning, removeAllListeners, removeListener, setFlag |
Constructor Detail |
---|
public ImmutableReasonFlag(IReasonFlag<T,R> flag)
Method Detail |
---|
public void setFlag(T newValue, R reasonForChange)
IReasonFlag
Should not produce any dead-locks even though it is synchronized method.
setFlag
in interface IReasonFlag<T,R>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |