Package net.jqwik.api
Klasse ShrinkingDistance
java.lang.Object
net.jqwik.api.ShrinkingDistance
- Alle implementierten Schnittstellen:
Comparable<ShrinkingDistance>
@API(status=STABLE,
since="1.0")
public class ShrinkingDistance
extends Object
implements Comparable<ShrinkingDistance>
A
ShrinkingDistance is a measure of how close a value is to the minimum value,
aka target value.
The distance is used during shrinking to determine if a shrunk value is really closer to the target value. If it is not, the value is being discarded.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final ShrinkingDistancestatic final ShrinkingDistance -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungappend(ShrinkingDistance other) static <T extends @Nullable Object>
ShrinkingDistancecombine(List<? extends Shrinkable<T>> shrinkables) intcompareTo(ShrinkingDistance other) Compare to distances with each other.booleanstatic <T extends @Nullable Object>
ShrinkingDistanceforCollection(Collection<? extends Shrinkable<T>> elements) inthashCode()static ShrinkingDistanceof(long... distances) Create aShrinkingDistancewith one or more dimensions.plus(ShrinkingDistance other) intsize()toString()
-
Felddetails
-
MAX
-
MIN
-
-
Methodendetails
-
of
Create aShrinkingDistancewith one or more dimensions.- Parameter:
distances- a non-empty array of non-negative values.- Gibt zurück:
- an immutable instance of
ShrinkingDistance
-
forCollection
@API(status=MAINTAINED, since="1.0") public static <T extends @Nullable Object> ShrinkingDistance forCollection(Collection<? extends Shrinkable<T>> elements) -
combine
@API(status=MAINTAINED, since="1.0") public static <T extends @Nullable Object> ShrinkingDistance combine(List<? extends Shrinkable<T>> shrinkables) -
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
Compare to distances with each other. No distance can be greater thanMAX. No distance can be smaller thanMIN.- Angegeben von:
compareToin SchnittstelleComparable<ShrinkingDistance>
-
dimensions
-
size
@API(status=INTERNAL) public int size() -
plus
-
append
-