All Downloads are FREE. Search and download functionalities are using the official Maven repository.

selva.oss.ds.document.FieldConfig Maven / Gradle / Ivy

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy