Here you can find the source of toBooleanObject(final int val)
Parameter | Description |
---|---|
val | a parameter |
public static Boolean toBooleanObject(final int val)
//package com.java2s; //License from project: Open Source License public class Main { /**//w ww . j a va 2s. co m * Method to convert int to Boolean object * * @param val * @return {@link Boolean} */ public static Boolean toBooleanObject(final int val) { return val != 0 ? Boolean.TRUE : Boolean.FALSE; } }