Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.util
Class ConversionUtil

    java.lang.Object
      org.apache.cayenne.util.ConversionUtil

    public final class ConversionUtil

extends Object

A collection of static conversion utility methods.

Since:
  1.1

Method Summary
`static BigDecimal` | `toBigDecimal(Object object)`
`static boolean` | `toBoolean(Object object)`
`static Comparable` | `toComparable(Object object)` Attempts to convert an object to Comparable instance.
`static int` | `toInt(Object object, int defaultValue)`
`static String` | `toString(Object object)` Attempts to convert an object to Comparable instance.
`static Object` | `toUpperCase(Object object)` Attempts to convert an object to an uppercase string.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### toInt

    public static int toInt(Object object,
                            int defaultValue)

### toBoolean

    public static boolean toBoolean(Object object)

### toBigDecimal

    public static BigDecimal toBigDecimal(Object object)

### toComparable

    public static Comparable toComparable(Object object)

  Attempts to convert an object to Comparable instance.

### toString

    public static String toString(Object object)

  Attempts to convert an object to Comparable instance.

### toUpperCase

    public static Object toUpperCase(Object object)

  Attempts to convert an object to an uppercase string.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.