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

com.blade.jdbc.core.Fields Maven / Gradle / Ivy

There is a newer version: 0.2.2-RELEASE
Show newest version
package com.blade.jdbc.core;

import java.util.Arrays;
import java.util.Set;
import java.util.TreeSet;
import java.util.function.Supplier;

/**
 * Created by biezhi on 03/07/2017.
 */
public class Fields implements Supplier {

    private Set fields;

    public Fields(Set fields) {
        this.fields = fields;
    }

    public static Fields of(String... fields) {
        return new Fields(new TreeSet<>(Arrays.asList(fields)));
    }

    public Set getFields() {
        return fields;
    }

    @Override
    public ConditionEnum get() {
        return ConditionEnum.FIELDS;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy