Java Boolean From toBoolean(int value)

Here you can find the source of toBoolean(int value)

Description

Converts a int to a boolean.

License

Open Source License

Parameter

Parameter Description
value int value

Return

true if value is != 0

Declaration

static boolean toBoolean(int value) 

Method Source Code

//package com.java2s;

public class Main {
    /**//ww  w  .j  a va 2  s. c  om
     * Converts a int to a boolean.
     * @param value int value
     * @return <code>true</code> if value is != 0
     */
    static boolean toBoolean(int value) {
        return value != 0;
    }
}

Related

  1. toBoolean(final String value)
  2. toBoolean(final String value)
  3. toBoolean(final String value)
  4. toBoolean(final String value, final boolean def)
  5. toBoolean(int i)
  6. toBoolean(Integer value, Integer trueValue, Integer falseValue)
  7. toBoolean(Number value)
  8. toBoolean(Object anObj)
  9. toBoolean(Object bool)