Class COUNTER.CounterViewImpl

  • All Implemented Interfaces:
    CounterView
    Enclosing class:
    COUNTER

    private static class COUNTER.CounterViewImpl
    extends java.lang.Object
    implements CounterView
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CounterViewImpl​(long value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long get()  
      void set​(long value)
      Sets the counter's value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private long value
    • Constructor Detail

      • CounterViewImpl

        private CounterViewImpl​(long value)
    • Method Detail

      • get

        public long get()
        Specified by:
        get in interface CounterView
        Returns:
        The counter's value.
      • set

        public void set​(long value)
        Description copied from interface: CounterView
        Sets the counter's value.
        Specified by:
        set in interface CounterView
        Parameters:
        value - The new value.