Java Number Negate negate(Boolean bool)

Here you can find the source of negate(Boolean bool)

Description

negate

License

Mozilla Public License

Declaration

public static Boolean negate(Boolean bool) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

public class Main {
    public static Boolean negate(Boolean bool) {
        if (bool == null) {
            return null;
        }/*  w  ww.j ava2 s  .co m*/

        return (bool ? Boolean.FALSE : Boolean.TRUE);
    }
}

Related

  1. negate(Boolean _value)
  2. negate(Boolean bool)
  3. negate(boolean[] posit)
  4. negate(Comparable v)
  5. negate(double[] a)