Java Integer to Boolean convertIntToBoolean(int aValue)

Here you can find the source of convertIntToBoolean(int aValue)

Description

Conevert int to boolean (1 == true, everything else is false).

License

Open Source License

Parameter

Parameter Description
aValue a parameter

Declaration

public static boolean convertIntToBoolean(int aValue) 

Method Source Code

//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;
    }
}

Related

  1. convertIntToBoolean(int value)
  2. IntegerToboolean(final Integer value)
  3. integerToStrBool(Integer integer)
  4. IntToBool(int Expression)