Package net.datafaker.transformations
Interface Field<IN,OUT>
-
- All Known Implementing Classes:
CompositeField
,SimpleField
public interface Field<IN,OUT>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <MyObject extends AbstractProvider<?>,MyType>
CompositeField<MyObject,MyType>compositeField(java.lang.String name, Field<MyObject,MyType>[] fields)
static <MyObject,MyType>
SimpleField<MyObject,MyType>field(java.lang.String name, java.util.function.Function<MyObject,MyType> transform)
static <MyObject,MyType>
SimpleField<MyObject,MyType>field(java.lang.String name, java.util.function.Supplier<MyType> supplier)
java.lang.String
getName()
OUT
transform(IN input)
-
-
-
Method Detail
-
getName
java.lang.String getName()
-
field
static <MyObject,MyType> SimpleField<MyObject,MyType> field(java.lang.String name, java.util.function.Function<MyObject,MyType> transform)
-
field
static <MyObject,MyType> SimpleField<MyObject,MyType> field(java.lang.String name, java.util.function.Supplier<MyType> supplier)
-
compositeField
static <MyObject extends AbstractProvider<?>,MyType> CompositeField<MyObject,MyType> compositeField(java.lang.String name, Field<MyObject,MyType>[] fields)
-
-