Package net.datafaker.transformations
Interface Field<IN,OUT>
- All Known Implementing Classes:
CompositeField
,SimpleField
public interface Field<IN,OUT>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <MyObject extends AbstractProvider<?>,
MyType>
CompositeField<MyObject,MyType> compositeField
(String name, Field<MyObject, MyType>[] fields) static <MyObject,
MyType>
SimpleField<MyObject,MyType> static <MyObject,
MyType>
SimpleField<MyObject,MyType> getName()
-
Method Details
-
getName
String getName() -
transform
-
field
static <MyObject,MyType> SimpleField<MyObject,MyType> field(String name, Function<MyObject, MyType> transform) -
field
static <MyObject,MyType> SimpleField<MyObject,MyType> field(String name, Supplier<MyType> supplier) -
compositeField
static <MyObject extends AbstractProvider<?>,MyType> CompositeField<MyObject,MyType> compositeField(String name, Field<MyObject, MyType>[] fields)
-