Java Boolean Convert to boolean2long(boolean b)

Here you can find the source of boolean2long(boolean b)

Description

booleanlong

License

Apache License

Declaration

public static long boolean2long(boolean b) 

Method Source Code

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

public class Main {
    public static long boolean2long(boolean b) {
        return b ? -1L : 0L;
    }//from w  ww. j a v a 2 s.  c  om
}

Related

  1. boolean2array(int sz, boolean seed)
  2. boolean2bin(boolean b)
  3. boolean2byte(boolean b)
  4. boolean2double(boolean b)
  5. booleanArrayToBitString(final boolean[] booleanArray)
  6. booleanArrayToBytes(boolean[] input)
  7. booleanArrayToInt(boolean[] in)
  8. booleanArrayToIntIndexes(boolean[] arrb)