Java Number Equal areEqual(final boolean aThis, final boolean aThat)

Here you can find the source of areEqual(final boolean aThis, final boolean aThat)

Description

are Equal

License

Apache License

Declaration

public static boolean areEqual(final boolean aThis, final boolean aThat) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean areEqual(final boolean aThis, final boolean aThat) {
        return aThis == aThat;
    }/*from   www.j av  a 2 s. c  o m*/

    public static boolean areEqual(final char aThis, final char aThat) {
        return aThis == aThat;
    }

    public static boolean areEqual(final long aThis, final long aThat) {
        return aThis == aThat;
    }

    public static boolean areEqual(final float aThis, final float aThat) {
        return Float.floatToIntBits(aThis) == Float.floatToIntBits(aThat);
    }

    public static boolean areEqual(final double aThis, final double aThat) {
        return Double.doubleToLongBits(aThis) == Double.doubleToLongBits(aThat);
    }

    public static boolean areEqual(final Object aThis, final Object aThat) {
        if (aThis == null) {
            return aThat == null;
        } else {
            return aThis.equals(aThat);
        }
    }
}

Related

  1. areEqual(boolean aThis, boolean aThat)
  2. areEqual(boolean aThis, boolean aThat)
  3. areEqual(boolean c1, boolean c2)
  4. areEqual(double d1, double d2)
  5. areEqual(double one, double two)
  6. areEqual(final char aThis, final char aThat)
  7. areEqual(float left, float right)
  8. areEqual(int align, int mask)
  9. areEqual(int i, int j)