Java Object Compare areEqual(Object parameter, Object otherParameter)

Here you can find the source of areEqual(Object parameter, Object otherParameter)

Description

are Equal

License

Apache License

Declaration

public static boolean areEqual(Object parameter, Object otherParameter) 

Method Source Code

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

public class Main {
    public static boolean areEqual(Object parameter, Object otherParameter) {
        if (parameter == null && otherParameter == null)
            return true;
        if (parameter != null && otherParameter == null)
            return false;
        if (parameter == null && otherParameter != null)
            return false;
        return parameter.equals(otherParameter);
    }//from   w  ww  .j a v a2 s . co  m
}

Related

  1. areEqual(Object obj1, Object obj2)
  2. areEqual(Object obj1, Object obj2)
  3. areEqual(Object obj1, Object obj2)
  4. areEqual(Object object1, Object object2)
  5. areEqual(Object one, Object another)
  6. areEqual(Object value, Object otherValue)
  7. areEqual(Object value1, Object value2)
  8. areEqual(T obj1, T obj2)
  9. areEqual(T obj1, V obj2)