Class Holder<T>

java.lang.Object
org.apache.hadoop.hdfs.util.Holder<T>

public class Holder<T> extends Object
A Holder is simply a wrapper around some other object. This is useful in particular for storing immutable values like boxed Integers in a collection without having to do the "lookup" of the value twice.
  • Field Details

    • held

      public T held
  • Constructor Details

    • Holder

      public Holder(T held)
  • Method Details