com.bradmcevoy.http.values
Class ValueAndType
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueAndType
public ValueAndType(java.lang.Object value,
java.lang.Class type)
getType
public java.lang.Class getType()
getValue
public java.lang.Object getValue()
Copyright © 2011. All Rights Reserved.