Java Boolean From toBool(long l)

Here you can find the source of toBool(long l)

Description

Returns the boolean for the given long.
If long is 1L this will return TRUE, else FALSE.

License

Open Source License

Parameter

Parameter Description
l The long value

Return

TRUE, if value = 1L; FALSE, otherwise

Declaration

public static boolean toBool(long l) 

Method Source Code

//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;
    }
}

Related

  1. toBool(Boolean obj)
  2. toBool(int[] data, int index)
  3. toBool(String bStr)
  4. toBool(String bv)
  5. toBool(String str)
  6. toBool(String str)