Interface Shrink<T>
- Type Parameters:
T- type of shrunken objects produced
- All Known Implementing Classes:
AbstractStringGenerator,ArrayGenerator,ArrayListGenerator,BiFunctionGenerator,BigDecimalGenerator,BigIntegerGenerator,BinaryOperatorGenerator,BiPredicateGenerator,BitSetGenerator,BooleanGenerator,ByteGenerator,CallableGenerator,CharacterGenerator,CharsetGenerator,ClockGenerator,CodePointShrink,CollectionGenerator,ComponentizedGenerator,CompositeGenerator,Ctor,DateGenerator,DecimalGenerator,DoubleFunctionGenerator,DoubleGenerator,DurationGenerator,Encoded,EnumGenerator,ExhaustiveDomainGenerator,Fields,FloatGenerator,FunctionGenerator,FunctionGenerator,Generator,GuaranteeValuesGenerator,HashMapGenerator,HashSetGenerator,HashtableGenerator,InstantGenerator,IntegerGenerator,IntegralGenerator,IntFunctionGenerator,LambdaGenerator,LinkedHashMapGenerator,LinkedHashSetGenerator,LinkedListGenerator,ListGenerator,LocalDateGenerator,LocalDateTimeGenerator,LocaleGenerator,LocalTimeGenerator,LongFunctionGenerator,LongGenerator,MapGenerator,MarkerInterfaceGenerator,MonthDayGenerator,NullableGenerator,OffsetDateTimeGenerator,OffsetTimeGenerator,OptionalDoubleGenerator,OptionalGenerator,OptionalGenerator,OptionalIntGenerator,OptionalLongGenerator,PeriodGenerator,PredicateGenerator,PredicateGenerator,PropertiesGenerator,RFC4122.AbstractUUIDGenerator,RFC4122.NameBasedUUIDGenerator,RFC4122.Version3,RFC4122.Version4,RFC4122.Version5,SamplingDomainGenerator,SetGenerator,ShortGenerator,StackGenerator,StringGenerator,SupplierGenerator,SupplierGenerator,TimeZoneGenerator,ToDoubleBiFunctionGenerator,ToDoubleFunctionGenerator,ToIntBiFunctionGenerator,ToIntFunctionGenerator,ToLongBiFunctionGenerator,ToLongFunctionGenerator,UnaryOperatorGenerator,VectorGenerator,VoidGenerator,YearGenerator,YearMonthGenerator,ZilchGenerator,ZonedDateTimeGenerator,ZoneIdGenerator,ZoneOffsetGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a strategy for producing objects "smaller than" a given object.
-
Method Summary
Modifier and TypeMethodDescriptionshrink(SourceOfRandomness random, Object larger) Gives some objects that are "smaller" than a given object.
-
Method Details
-
shrink
Gives some objects that are "smaller" than a given object.- Parameters:
random- source of randomness to use in shrinking, if desiredlarger- the larger object- Returns:
- objects that are "smaller" than the larger object
-