Java xor xor(final boolean x, final boolean y)

Here you can find the source of xor(final boolean x, final boolean y)

Description

Boolean xor operation.

License

Open Source License

Parameter

Parameter Description
x a boolean
y a boolean

Return

true if x != y

Declaration

public static boolean xor(final boolean x, final boolean y) 

Method Source Code

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

public class Main {
    /**//from  www  .  j a  va  2s  . c om
     * Boolean xor operation.  Only true if x != y.
     *
     * @param x a boolean
     * @param y a boolean
     * @return true if x != y
     */
    public static boolean xor(final boolean x, final boolean y) {
        return x != y;
    }
}

Related

  1. xor(byte[] x, byte[] y)
  2. xor(byte[]... bytesArr)
  3. xor(char[] a, char[] b)
  4. xor(double lhs, double rhs)
  5. xor(final boolean value1, final boolean value2)
  6. xor(final byte[] bytesA, final byte[] bytesB)
  7. xor(final byte[] hash, final byte[] input)
  8. xor(final byte[] hash, final byte[] input)
  9. xor(final byte[] input, final byte[] secret)