com.bradmcevoy.http.values
Class ValueAndType

java.lang.Object
  extended by com.bradmcevoy.http.values.ValueAndType

public class ValueAndType
extends java.lang.Object

This class exists to convey type information even when a value is null. This is important because we will often want to select parses and formatters based on knowledge of the type of the value, even when that value is null.

Author:
brad

Constructor Summary
ValueAndType(java.lang.Object value, java.lang.Class type)
           
 
Method Summary
 java.lang.Class getType()
           
 java.lang.Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueAndType

public ValueAndType(java.lang.Object value,
                    java.lang.Class type)
Method Detail

getType

public java.lang.Class getType()

getValue

public java.lang.Object getValue()


Copyright © 2011. All Rights Reserved.