org.apache.hadoop.hdfs.util
Class Holder<T>

java.lang.Object
  extended by 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 Summary
 T held
           
 
Constructor Summary
Holder(T held)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

held

public T held
Constructor Detail

Holder

public Holder(T held)
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.