Class Helpers


  • public class Helpers
    extends Object
    • Constructor Detail

      • Helpers

        public Helpers()
    • Method Detail

      • bothNullOrEqual

        public static boolean bothNullOrEqual​(Object a,
                                              Object b)
        Checks, if the given two objects are either both null, or equal according to their Object.equals(Object) method.
        Parameters:
        a - the first object
        b - the second object
        Returns:
        true only if both are null, or of a.equals(b) is true.