cz.cuni.amis.utils.flag
Class FlagInteger.DoInSyncWithReason<T,R>
java.lang.Object
cz.cuni.amis.utils.flag.Flag.DoInSync<T>
cz.cuni.amis.utils.flag.FlagInteger.DoInSyncWithReason<T,R>
- Enclosing class:
- FlagInteger
public abstract static class FlagInteger.DoInSyncWithReason<T,R>
- extends Flag.DoInSync<T>
This class extends the DoInSync of the reason that was passed along.
Method Summary |
abstract void |
execute(T flagValue)
|
abstract void |
execute(T flagValue,
R reason)
|
protected T |
getFlag()
|
protected boolean |
isImmutable()
Tells you whether you operate over immutable flag (can't call setFlag() then) or not. |
protected void |
setFlag(T value,
R reason)
Set value in sync. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlagInteger.DoInSyncWithReason
public FlagInteger.DoInSyncWithReason()
isImmutable
protected boolean isImmutable()
- Tells you whether you operate over immutable flag (can't call setFlag() then) or not.
- Overrides:
isImmutable
in class Flag.DoInSync<T>
- Returns:
setFlag
protected void setFlag(T value,
R reason)
- Set value in sync.
getFlag
protected T getFlag()
- Overrides:
getFlag
in class Flag.DoInSync<T>
execute
public abstract void execute(T flagValue)
- Specified by:
execute
in class Flag.DoInSync<T>
- Parameters:
flag
-
execute
public abstract void execute(T flagValue,
R reason)
- Parameters:
flag
-
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.