Class Equals<R,​T extends Comparable<R>>

  • Type Parameters:
    R - Type of object to compare
    T - Type of object to compare
    All Implemented Interfaces:
    Scalar<Boolean>

    public final class Equals<R,​T extends Comparable<R>>
    extends Object
    implements Scalar<Boolean>
    Equals.

    There is no thread-safety guarantee.

    This class implements Scalar, which throws a checked Exception. This may not be convenient in many cases. To make it more convenient and get rid of the checked exception you can use the Unchecked decorator. Or you may use IoChecked to wrap it in an IOException.

    Since:
    0.9
    • Constructor Detail

      • Equals

        public Equals​(T source,
                      R compared)
        Ctor.
        Parameters:
        source - The first scalar to compare.
        compared - The second scalar to compare.
      • Equals

        public Equals​(Scalar<? extends T> source,
                      Scalar<? extends R> compared)
        Ctor.
        Parameters:
        source - The first scalar to compare.
        compared - The second scalar to compare.