Android Boolean to Int Convert boolToLong(boolean b)

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

Description

bool To Long

Declaration

public static long boolToLong(boolean b) 

Method Source Code

//package com.java2s;

public class Main {
    public static long boolToLong(boolean b) {
        return b ? 1 : 0;
    }//from www  . j  a v  a 2s  .c o  m
}

Related

  1. boolToInt(boolean b)