Class StrongBox<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      T value  
    • Constructor Summary

      Constructors 
      Constructor Description
      StrongBox()  
      StrongBox​(T value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T input)  
      T get()  
      void set​(java.lang.Object value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • value

        public T value
    • Constructor Detail

      • StrongBox

        public StrongBox()
      • StrongBox

        public StrongBox​(T value)
    • Method Detail

      • set

        public void set​(java.lang.Object value)
        Specified by:
        set in interface IStrongBox
      • accept

        public void accept​(T input)
        Specified by:
        accept in interface Consumer<T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object