Class AbstractPatriciaTrie.Reference<E>

  • Enclosing class:
    AbstractPatriciaTrie<K,​V>

    private static class AbstractPatriciaTrie.Reference<E>
    extends java.lang.Object
    A AbstractPatriciaTrie.Reference allows us to return something through a Method's argument list. An alternative would be to an Array with a length of one (1) but that leads to compiler warnings. Computationally and memory wise there's no difference (except for the need to load the AbstractPatriciaTrie.Reference Class but that happens only once).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private E item  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Reference()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E get()  
      void set​(E item)  
      • Methods inherited from class java.lang.Object

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

      • item

        private E item
    • Constructor Detail

      • Reference

        private Reference()
    • Method Detail

      • set

        public void set​(E item)
      • get

        public E get()