Here you can find the source of toBool(long l)
Parameter | Description |
---|---|
l | The long value |
public static boolean toBool(long l)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . ja v a 2 s. co m*/ * Returns the boolean for the given long.<br> * If long is 1L this will return TRUE, else FALSE. * * @param l * The long value * @return TRUE, if value = 1L; FALSE, otherwise */ public static boolean toBool(long l) { if (l == 1L) { return true; } return false; } }