Android examples for java.lang:Boolean
get boolean value from java.lang.Boolean, skip null value
/*//from www . j ava 2 s . c o m * File: $RCSfile: ObjectUtilities.java,v $ * * Copyright (c) 2009 Kewill, * * All Rights Reserved. * * This software is the confidential and proprietary information * of Kewill ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered * into with Kewill. */ //package com.java2s; public class Main { /** * get boolean value from <code>java.lang.Boolean</code>, skip null value * * @param value <code>java.lang.Boolean</code> * @return if value if null or has false value return false, else return true */ public static boolean booleanValueForBoolean(Boolean value) { return value != null && value; } }