Class Mutable<T>


  • public class Mutable<T>
    extends java.lang.Object
    An entity whose values can be overriden with new value. It can also be reset to its initial state.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T current  
      private T last  
    • Constructor Summary

      Constructors 
      Constructor Description
      Mutable​(T value)  
    • Field Detail

      • current

        private T current
      • last

        private T last
    • Constructor Detail

      • Mutable

        public Mutable​(T value)
    • Method Detail

      • override

        public void override​(T newValue)
      • reset

        public void reset()
      • getValue

        public T getValue()
      • getLast

        public T getLast()
      • isOverridden

        public boolean isOverridden()