org.slim3.commons.util
Class BooleanUtil

java.lang.Object
  extended by org.slim3.commons.util.BooleanUtil

public final class BooleanUtil
extends Object

A utility class for Boolean.

Author:
higa

Method Summary
static Boolean toBoolean(Object o)
          Converts the object to Boolean.
static boolean toPrimitiveBoolean(Object o)
          Converts the object to primitive boolean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toBoolean

public static Boolean toBoolean(Object o)
Converts the object to Boolean.

Parameters:
o - the object
Returns:
the converted value

toPrimitiveBoolean

public static boolean toPrimitiveBoolean(Object o)
Converts the object to primitive boolean.

Parameters:
o - the object
Returns:
the converted value


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.