selva.oss.ds.document.FieldConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib Show documentation
Show all versions of lib Show documentation
Collection of libraries that make backend DX an oasis.
The newest version!
package selva.oss.ds.document;
import static selva.oss.lang.Commons.*;
import selva.oss.ds.document.datatype.DataTypeConfig;
import selva.oss.ds.document.datatype.TypedValue;
import java.util.*;
import java.util.stream.Stream;
public class FieldConfig {
private T field;
private DataTypeConfig dataTypeConfig;
public FieldConfig(T field, DataTypeConfig dataTypeConfig) {
validateNotNull(field);
validateNotNull(dataTypeConfig);
this.field = field;
this.dataTypeConfig = dataTypeConfig;
}
public T getField() {
return this.field;
}
public String getFieldAsString() {
return this.field.toString();
}
public DataTypeConfig getDataTypeConfig() {
return this.dataTypeConfig;
}
}