Uses of Interface
org.instancio.SelectorGroup
-
Packages that use SelectorGroup Package Description org.instancio Instancio public-facing APIs; for usage examples seeInstancio
.org.instancio.internal -
-
Uses of SelectorGroup in org.instancio
Methods in org.instancio that return SelectorGroup Modifier and Type Method Description static SelectorGroup
Select. all(Class<?> type)
Select all instances of the given type, not including subtypes.static SelectorGroup
Select. all(SelectorGroup... selectorGroups)
Convenience method for combining multiple selections, for example:static SelectorGroup
Select. allBooleans()
Selects all booleans, primitive and wrapper.static SelectorGroup
Select. allBytes()
Selects all bytes, primitive and wrapper.static SelectorGroup
Select. allChars()
Selects all characters, primitive and wrapper.static SelectorGroup
Select. allDoubles()
Selects all doubles, primitive and wrapper.static SelectorGroup
Select. allFloats()
Selects all floats, primitive and wrapper.static SelectorGroup
Select. allInts()
Selects all integers, primitive and wrapper.static SelectorGroup
Select. allLongs()
Selects all longs, primitive and wrapper.static SelectorGroup
Select. allShorts()
Selects all shorts, primitive and wrapper.static SelectorGroup
Select. allStrings()
Shorthand forall(String.class)
.static SelectorGroup
Select. field(Class<?> declaringClass, String fieldName)
Selects a field of the specified class.static SelectorGroup
Select. field(String fieldName)
Selects a field that belongs to the class being created.Methods in org.instancio with parameters of type SelectorGroup Modifier and Type Method Description static SelectorGroup
Select. all(SelectorGroup... selectorGroups)
Convenience method for combining multiple selections, for example:<V,S extends GeneratorSpec<V>>
InstancioApi<T>InstancioApi. generate(SelectorGroup selectors, Function<Generators,S> gen)
Generates a random value for a field or class using a built-in generator.InstancioApi<T>
InstancioApi. ignore(SelectorGroup selectors)
Specifies that a class or field should be ignored.InstancioApi<T>
InstancioApi. map(SelectorGroup selectors, Class<?> subtype)
Maps target field or class to the given subtype.<V> InstancioApi<T>
InstancioApi. onComplete(SelectorGroup selectors, OnCompleteCallback<V> callback)
A callback that gets invoked after an object has been fully populated.<V> InstancioApi<T>
InstancioApi. supply(SelectorGroup selectors, Supplier<V> supplier)
Supplies a non-random value for a field or class using aSupplier
.<V> InstancioApi<T>
InstancioApi. supply(SelectorGroup selectors, Generator<V> generator)
Supplies a randomised value for a field or class using a customGenerator
.InstancioApi<T>
InstancioApi. withNullable(SelectorGroup selectors)
Specifies that a field or class is nullable. -
Uses of SelectorGroup in org.instancio.internal
Methods in org.instancio.internal with parameters of type SelectorGroup Modifier and Type Method Description <V,S extends GeneratorSpec<V>>
InstancioApi<T>InstancioApiImpl. generate(SelectorGroup target, Function<Generators,S> gen)
InstancioApi<T>
InstancioApiImpl. ignore(SelectorGroup selectorGroup)
InstancioApi<T>
InstancioApiImpl. map(SelectorGroup selectorGroup, Class<?> subtype)
<V> InstancioApi<T>
InstancioApiImpl. onComplete(SelectorGroup target, OnCompleteCallback<V> callback)
<V> InstancioApi<T>
InstancioApiImpl. supply(SelectorGroup selectorGroup, Supplier<V> supplier)
<V> InstancioApi<T>
InstancioApiImpl. supply(SelectorGroup selectorGroup, Generator<V> generator)
ModelContext.Builder<T>
ModelContext.Builder. withGenerator(SelectorGroup selectorGroup, Generator<?> generator)
ModelContext.Builder<T>
ModelContext.Builder. withGeneratorSpec(SelectorGroup target, Function<Generators,? extends GeneratorSpec<?>> spec)
ModelContext.Builder<T>
ModelContext.Builder. withIgnored(SelectorGroup selectorGroup)
InstancioApi<T>
InstancioApiImpl. withNullable(SelectorGroup target)
ModelContext.Builder<T>
ModelContext.Builder. withNullable(SelectorGroup selectorGroup)
<V> ModelContext.Builder<T>
ModelContext.Builder. withOnCompleteCallback(SelectorGroup target, OnCompleteCallback<V> callback)
ModelContext.Builder<T>
ModelContext.Builder. withSubtype(SelectorGroup selectorGroup, Class<?> subtype)
ModelContext.Builder<T>
ModelContext.Builder. withSupplier(SelectorGroup selectorGroup, Supplier<?> supplier)
-