Class EqualsNullable

  • All Implemented Interfaces:
    Scalar<Boolean>

    public final class EqualsNullable
    extends Object
    implements Scalar<Boolean>
    Checks 2 objects for equality. Null values are accepted.

    There is no thread-safety guarantee.

    Since:
    1.0
    • Constructor Detail

      • EqualsNullable

        public EqualsNullable​(Object first,
                              Object second)
        Accepts 2 objects to compare.
        Parameters:
        first - Object to compare
        second - Object to compare with
      • EqualsNullable

        public EqualsNullable​(Scalar<? extends Object> first,
                              Object second)
        Accepts scalar to get value from and object to compare with.
        Parameters:
        first - Scalar to get value to compare
        second - Object to compare with
      • EqualsNullable

        public EqualsNullable​(Object first,
                              Scalar<? extends Object> second)
        Accepts object to compare with and scalar to get value from.
        Parameters:
        first - Object to compare
        second - Scalar to get value to compare
      • EqualsNullable

        public EqualsNullable​(Scalar<? extends Object> first,
                              Scalar<? extends Object> second)
        Accepts 2 scalars to get get values from.
        Parameters:
        first - Scalar to get value to compare
        second - Scalar to get value to compare with