Java Long to Boolean longToBoolean(long l)

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

Description

long To Boolean

License

LGPL

Declaration

public static boolean longToBoolean(long l) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static boolean longToBoolean(long l) {
        return l != 0 ? true : false;
    }/*from w ww. jav  a  2 s.  c  om*/
}

Related

  1. longToBoolean(final Long b)
  2. longToBoolean(long[] values)