Class ProcedureThatAffects<T>
java.lang.Object
org.dmfs.jems2.confidence.procedure.ProcedureThatAffects<T>
- All Implemented Interfaces:
org.saynotobugs.confidence.Quality<org.dmfs.jems2.FragileProcedure<T,?>>
public final class ProcedureThatAffects<T>
extends Object
implements org.saynotobugs.confidence.Quality<org.dmfs.jems2.FragileProcedure<T,?>>
-
Constructor Summary
ConstructorsConstructorDescriptionProcedureThatAffects(org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality) AQualitythat describes the side effect of aFragileProcedureon its argument.ProcedureThatAffects(org.saynotobugs.confidence.Description valueDescription, org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality) AQualitythat describes the side effect of aFragileProcedureon its argument. -
Method Summary
Modifier and TypeMethodDescriptionorg.saynotobugs.confidence.AssessmentassessmentOf(org.dmfs.jems2.FragileProcedure<T, ?> candidate) org.saynotobugs.confidence.Description
-
Constructor Details
-
ProcedureThatAffects
public ProcedureThatAffects(org.saynotobugs.confidence.Description valueDescription, org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality) AQualitythat describes the side effect of aFragileProcedureon its argument.The argument is provided by the given
Singleand tested by the givenQualityafter passing it to the consumer.For best results, decorate the value
QualitywithSoItorCore.soIt(Quality). -
ProcedureThatAffects
public ProcedureThatAffects(org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality) AQualitythat describes the side effect of aFragileProcedureon its argument.The argument is provided by the given
Singleand tested by the givenQualityafter passing it to the consumer.For best results, decorate the value
QualitywithSoItorCore.soIt(Quality).
-
-
Method Details
-
assessmentOf
public org.saynotobugs.confidence.Assessment assessmentOf(org.dmfs.jems2.FragileProcedure<T, ?> candidate) - Specified by:
assessmentOfin interfaceorg.saynotobugs.confidence.Quality<T>
-
description
public org.saynotobugs.confidence.Description description()- Specified by:
descriptionin interfaceorg.saynotobugs.confidence.Quality<T>
-