Here you can find the source of toBoolean(int value)
Parameter | Description |
---|---|
value | int value |
true
if value is != 0
static boolean toBoolean(int value)
//package com.java2s; public class Main { /**//ww w .j a va 2 s. c om * Converts a int to a boolean. * @param value int value * @return <code>true</code> if value is != 0 */ static boolean toBoolean(int value) { return value != 0; } }