View Javadoc

1   package cz.cuni.amis.utils.flag;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Reason flag whose value cannot be set.
7    * @author ik
8    */
9   public class ImmutableReasonFlag<T, R> extends ImmutableFlag<T> implements IReasonFlag<T, R>, Serializable {
10  
11      public ImmutableReasonFlag(IReasonFlag<T, R> flag) {
12          super(flag);
13      }
14  
15      @Override
16      public void setFlag(T newValue, R reasonForChange) {
17      	// TODO: immutable???
18          setFlag(newValue);
19      }
20  }