Here you can find the source of convertIntToBoolean(int aValue)
Parameter | Description |
---|---|
aValue | a parameter |
public static boolean convertIntToBoolean(int aValue)
//package com.java2s; public class Main { /**/*from www . j av a2s . co m*/ * Constant for true int (1). */ public static final int TRUE = 1; /** * Conevert int to boolean (1 == true, everything else is false). * * @param aValue */ public static boolean convertIntToBoolean(int aValue) { return aValue == TRUE; } }