com.googlecode.genericdao.search
Class InternalUtil
java.lang.Object
com.googlecode.genericdao.search.InternalUtil
public class InternalUtil
- extends Object
Utilities for TRG Generic DAO Search
- Author:
- dwolverton
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalUtil
public InternalUtil()
convertIfNeeded
public static Object convertIfNeeded(Object value,
Class<?> type)
throws ClassCastException
Return an instance of the given class type that has the given value. For
example, if type is Long and Integer type with
the value 13 is passed in, a new instance of Long will be
returned with the value 13.
If the value is already of the correct type, it is simply returned.
- Throws:
ClassCastException - if the value cannot be converted to the given type.
paramDisplayString
public static String paramDisplayString(Object val)
Copyright © 2008-2011. All Rights Reserved.