org.apache.hadoop.hdfs.util
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.
held
public T held
Holder
public Holder(T held)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 Apache Software Foundation. All Rights Reserved.