Class Present<T>
java.lang.Object
org.saynotobugs.confidence.quality.composite.QualityComposition<org.dmfs.jems2.Optional<T>>
org.dmfs.jems2.confidence.optional.Present<T>
- All Implemented Interfaces:
org.saynotobugs.confidence.Quality<org.dmfs.jems2.Optional<T>>
public final class Present<T>
extends org.saynotobugs.confidence.quality.composite.QualityComposition<org.dmfs.jems2.Optional<T>>
-
Constructor Summary
ConstructorsConstructorDescriptionPresent()Matches presentOptionals ith any value.Present(org.dmfs.jems2.Function<? super org.saynotobugs.confidence.Description, ? extends org.saynotobugs.confidence.Description> expectationDescription, org.dmfs.jems2.Function<? super org.saynotobugs.confidence.Description, ? extends org.saynotobugs.confidence.Description> delegateFailDescription, org.saynotobugs.confidence.Description absentDescription, org.saynotobugs.confidence.Quality<? super T> delegate) Matches presentOptionals with a value that matches the givenQuality.Matches presentOptionals with a value that matches the givenQuality.Matches presentOptionals with a value that's equal to the given one. -
Method Summary
Methods inherited from class org.saynotobugs.confidence.quality.composite.QualityComposition
assessmentOf, description
-
Constructor Details
-
Present
public Present()Matches presentOptionals ith any value. -
Present
Matches presentOptionals with a value that's equal to the given one. -
Present
Matches presentOptionals with a value that matches the givenQuality. -
Present
public Present(org.dmfs.jems2.Function<? super org.saynotobugs.confidence.Description, ? extends org.saynotobugs.confidence.Description> expectationDescription, org.dmfs.jems2.Function<? super org.saynotobugs.confidence.Description, ? extends org.saynotobugs.confidence.Description> delegateFailDescription, org.saynotobugs.confidence.Description absentDescription, org.saynotobugs.confidence.Quality<? super T> delegate) Matches presentOptionals with a value that matches the givenQuality.This constructor takes additional arguments to customize the
Descriptions of theQuality.
-