Class EqualsUtil


  • public final class EqualsUtil
    extends Object
    • Constructor Detail

      • EqualsUtil

        public EqualsUtil()
    • Method Detail

      • hasChanged

        public static boolean hasChanged​(Object target,
                                         Object source)
        Checks for changed.
        Parameters:
        target - the target
        source - the source
        Returns:
        true, if successful
      • areEqual

        public static boolean areEqual​(boolean aThis,
                                       boolean aThat)
        Are equal.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful
      • areEqual

        public static boolean areEqual​(char aThis,
                                       char aThat)
        Are equal.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful
      • areEqual

        public static boolean areEqual​(long aThis,
                                       long aThat)
        Are equal.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful
      • areEqual

        public static boolean areEqual​(float aThis,
                                       float aThat)
        Are equal.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful
      • areEqual

        public static boolean areEqual​(double aThis,
                                       double aThat)
        Are equal.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful
      • areEqual

        public static boolean areEqual​(Object aThis,
                                       Object aThat)
        Possibly-null object field. Includes type-safe enumerations and collections, but does not include arrays. See class comment.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful
      • areSameNullState

        public static boolean areSameNullState​(Object aThis,
                                               Object aThat)
        Is the null state of both objects equivalent.
        Parameters:
        aThis - the a this
        aThat - the a that
        Returns:
        true, if successful