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

zhao.algorithmMagic.utils.dataContainer.SetAndValue Maven / Gradle / Ivy

There is a newer version: 1.42
Show newest version
package zhao.algorithmMagic.utils.dataContainer;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public final class SetAndValue {
    private final VALUE value;
    private final Set stringSet;

    public SetAndValue(VALUE value, Set stringSet) {
        this.value = value;
        this.stringSet = stringSet;
    }

    public SetAndValue(VALUE value, String... strings) {
        this.value = value;
        this.stringSet = new HashSet<>(Arrays.asList(strings));
    }

    public VALUE getValue() {
        return value;
    }

    public Set getStringSet() {
        return stringSet;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy