Package guru.mikelue.foxglove.functional
package guru.mikelue.foxglove.functional
Provides utilities for Interfaces for
functional interfaces.
Interfaces for DataSetting
ColumnMatcher- Used to match a column by its metadata.SupplierDecider- AFunctionturns aColumnMetato aSupplier.
Featured Suppliers
Int4SequenceSupplier,Int8SequenceSupplier- Used to generate sequence numbers for integer types.RoundRobinValueSupplierprovides round robin behavior over a domain of valuesRowIndexToValuedefines theFunctionwhich converts an index of row(generated for a table facet) to certain value
Supplier wrapper
Suppliers provides utilities to wrap a Supplier with extra behavior.
Suppliers.rollingSupplier(Supplier)makesSupplier.get()emittingnullvalue with customizable oddsSuppliers.lazySupplier(Supplier)makes the instantiation of aSupplierto be delayed until the first time calling ofSupplier.get().
-
ClassDescriptionDefines the matcher for column metadata.DataGeneratorProvider<T extends TableFacet>Provides
DataGeneratorinstances, this interface is usually used by JUnit extension or TestExecutionListener of SpringFramework.Provides consequent number with customizable start and steps.Provides consequent number with customizable start and steps.Supplies values in round-robin manner from the given list.This interface defines the action to convert a row index to a value.This is a statefulSupplier, which need client code to implementsFunction.apply(T)method.SequenceSupplier<T extends Number>Supplies consequent number with customizable start and steps.StreamOfTableFacetsProvider<T extends TableFacet>Streamalternative ofTableFacetsProvider,Form a given context, decides the correspondingSupplier.Provides utility methods forSupplier.TableFacetProvider<T extends TableFacet>Convenient interface to provide a singleTableFacet.TableFacetsProvider<T extends TableFacet>Provides a list ofTableFacets, this interface is usually used by JUnit extension or TestExecutionListener of SpringFramework.