Java Long to Boolean longToBoolean(final Long b)

Here you can find the source of longToBoolean(final Long b)

Description

long To Boolean

License

Open Source License

Declaration

public static boolean longToBoolean(final Long b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean longToBoolean(final Long b) {
        if (b == null) {
            return false;
        }//ww  w .j av  a 2 s .  c  o  m
        return b != 0;
    }
}

Related

  1. longToBoolean(long l)
  2. longToBoolean(long[] values)