Here you can find the source of toPrimitive(final Boolean b)
Parameter | Description |
---|---|
b | the Boolean wrapper |
public static boolean toPrimitive(final Boolean b)
//package com.java2s; public class Main { /**/* www .j ava 2s .c o m*/ * @param b the Boolean wrapper * @return false if b is null of false, true otherwise */ public static boolean toPrimitive(final Boolean b) { return b == null ? false : b.booleanValue(); } }