top.lingyuzhao.utils.dataContainer.SetAndValue Maven / Gradle / Ivy
The newest version!
package top.lingyuzhao.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;
}
}