cz.cuni.amis.utils.flag
Class FlagInteger.DoInSyncWithReason<T,R>

Package class diagram package FlagInteger.DoInSyncWithReason
java.lang.Object
  extended by cz.cuni.amis.utils.flag.Flag.DoInSync<T>
      extended by 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.


Constructor Summary
FlagInteger.DoInSyncWithReason()
           
 
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 cz.cuni.amis.utils.flag.Flag.DoInSync
setFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlagInteger.DoInSyncWithReason

public FlagInteger.DoInSyncWithReason()
Method Detail

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.