Class SameAs<T>

java.lang.Object
org.dmfs.jems2.predicate.SameAs<T>
All Implemented Interfaces:
Predicate<T>

public final class SameAs<T> extends Object implements Predicate<T>
A trivial Predicate which compares the instances of two objects and matches if they are the same.
  • Constructor Details

    • SameAs

      public SameAs(T value)
  • Method Details

    • satisfiedBy

      public boolean satisfiedBy(T testedInstance)
      Description copied from interface: Predicate
      Returns whether the given instance satisfies this predicate.
      Specified by:
      satisfiedBy in interface Predicate<T>