Java Boolean From toBooleanString(long value)

Here you can find the source of toBooleanString(long value)

Description

Returns the boolean string for the value.

License

Open Source License

Parameter

Parameter Description
value The value: 0x00=False, 0x01=True

Return

True or False as string

Declaration

public static String toBooleanString(long value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//w ww .  jav a2  s . c  o m
     * Returns the boolean string for the value.<br/>
     *
     * @param value
     *            The value: 0x00=False, 0x01=True
     * @return True or False as string
     */
    public static String toBooleanString(long value) {
        if (value == 0x01L) {
            return "True";
        }
        return "False";
    }
}

Related

  1. toBooleanObject(int value, int trueValue, int falseValue, int nullValue)
  2. toBooleanObject(int value, int trueValue, int falseValue, int nullValue)
  3. toBooleanObject(String str)
  4. toBooleans(byte[] bytes)
  5. toBooleans(byte[] value, int offset, int num)
  6. toBooleanTrue(String str)
  7. toBooleanValue(final Object o)
  8. toBooleanValue(Object val)
  9. toBoolStr(boolean b)