Class AbstractPatriciaTrie.Reference<E>

java.lang.Object
org.apache.commons.collections4.trie.AbstractPatriciaTrie.Reference<E>
Enclosing class:
AbstractPatriciaTrie<K,V>

private static class AbstractPatriciaTrie.Reference<E> extends 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 Details

    • item

      private E item
  • Constructor Details

    • Reference

      private Reference()
  • Method Details

    • set

      public void set(E item)
    • get

      public E get()