Class MappedShrinkable<T,U>

java.lang.Object
net.jqwik.engine.properties.shrinking.MappedShrinkable<T,U>
All Implemented Interfaces:
Comparable<net.jqwik.api.Shrinkable<U>>, net.jqwik.api.Shrinkable<U>

public class MappedShrinkable<T,U> extends Object implements net.jqwik.api.Shrinkable<U>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.jqwik.api.Shrinkable

    net.jqwik.api.Shrinkable.ShrinkableFacade
  • Constructor Summary

    Constructors
    Constructor
    Description
    MappedShrinkable(net.jqwik.api.Shrinkable<T> toMap, Function<T,U> mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.jqwik.api.ShrinkingDistance
     
    boolean
     
    Stream<net.jqwik.api.Shrinkable<U>>
     
    Optional<net.jqwik.api.Shrinkable<U>>
    grow(net.jqwik.api.Shrinkable<?> before, net.jqwik.api.Shrinkable<?> after)
     
    int
     
    Stream<net.jqwik.api.Shrinkable<U>>
     
    net.jqwik.api.Shrinkable<U>
    toMappedShrinkable(net.jqwik.api.Shrinkable<T> shrinkable)
     
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.jqwik.api.Shrinkable

    asGeneric, compareTo, filter, flatMap, makeUnshrinkable, map
  • Constructor Details

    • MappedShrinkable

      public MappedShrinkable(net.jqwik.api.Shrinkable<T> toMap, Function<T,U> mapper)
  • Method Details

    • value

      public U value()
      Specified by:
      value in interface net.jqwik.api.Shrinkable<T>
    • shrink

      public Stream<net.jqwik.api.Shrinkable<U>> shrink()
      Specified by:
      shrink in interface net.jqwik.api.Shrinkable<T>
    • toMappedShrinkable

      public net.jqwik.api.Shrinkable<U> toMappedShrinkable(net.jqwik.api.Shrinkable<T> shrinkable)
    • grow

      public Optional<net.jqwik.api.Shrinkable<U>> grow(net.jqwik.api.Shrinkable<?> before, net.jqwik.api.Shrinkable<?> after)
      Specified by:
      grow in interface net.jqwik.api.Shrinkable<T>
    • grow

      public Stream<net.jqwik.api.Shrinkable<U>> grow()
      Specified by:
      grow in interface net.jqwik.api.Shrinkable<T>
    • distance

      public net.jqwik.api.ShrinkingDistance distance()
      Specified by:
      distance in interface net.jqwik.api.Shrinkable<T>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object