Here you can find the source of convertBooleanToInt(boolean aValue)
Parameter | Description |
---|---|
aValue | a parameter |
public static int convertBooleanToInt(boolean aValue)
//package com.java2s; public class Main { /**/*from w w w .j a v a 2 s . c o m*/ * Constant for true int (1). */ public static final int TRUE = 1; /** * Constant for true int (0). */ public static final int FALSE = 0; /** * Convert boolean to TRUE constant. * * @param aValue */ public static int convertBooleanToInt(boolean aValue) { return aValue ? TRUE : FALSE; } }