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

    Constructors
    Constructor
    Description
    ProcedureThatAffects(org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality)
    A Quality that describes the side effect of a FragileProcedure on its argument.
    ProcedureThatAffects(org.saynotobugs.confidence.Description valueDescription, org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality)
    A Quality that describes the side effect of a FragileProcedure on its argument.
    ProcedureThatAffects(org.saynotobugs.confidence.Description valueDescription, org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality, org.saynotobugs.confidence.Quality<org.saynotobugs.confidence.quality.object.Throwing.Breakable> callQuality)
    A Quality that describes the side effect of a FragileProcedure on its argument.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.saynotobugs.confidence.Assessment
    assessmentOf(org.dmfs.jems2.FragileProcedure<T,?> candidate)
     
    org.saynotobugs.confidence.Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProcedureThatAffects

      public ProcedureThatAffects(org.saynotobugs.confidence.Description valueDescription, org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality)
      A Quality that describes the side effect of a FragileProcedure on its argument.

      The argument is provided by the given Single and tested by the given Quality after passing it to the consumer.

      For best results, decorate the valueQuality with SoIt or Core.soIt(Quality).

    • ProcedureThatAffects

      public ProcedureThatAffects(org.saynotobugs.confidence.Description valueDescription, org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality, org.saynotobugs.confidence.Quality<org.saynotobugs.confidence.quality.object.Throwing.Breakable> callQuality)
      A Quality that describes the side effect of a FragileProcedure on its argument.

      The argument is provided by the given Single and tested by the given Quality after passing it to the consumer.

      For best results, decorate the valueQuality with SoIt or Core.soIt(Quality).

    • ProcedureThatAffects

      public ProcedureThatAffects(org.dmfs.jems2.Single<T> valueSupplier, org.saynotobugs.confidence.Quality<? super T> valueQuality)
      A Quality that describes the side effect of a FragileProcedure on its argument.

      The argument is provided by the given Single and tested by the given Quality after passing it to the consumer.

      For best results, decorate the valueQuality with SoIt or Core.soIt(Quality).

  • Method Details

    • assessmentOf

      public org.saynotobugs.confidence.Assessment assessmentOf(org.dmfs.jems2.FragileProcedure<T,?> candidate)
      Specified by:
      assessmentOf in interface org.saynotobugs.confidence.Quality<T>
    • description

      public org.saynotobugs.confidence.Description description()
      Specified by:
      description in interface org.saynotobugs.confidence.Quality<T>