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

net.jqwik.time.internal.properties.arbitraries.valueRanges.AllowedUnits Maven / Gradle / Ivy

package net.jqwik.time.internal.properties.arbitraries.valueRanges;

import java.util.*;

// TODO: Make it immutable
public abstract class AllowedUnits {

	protected Set allowed;

	public AllowedUnits() {
		setDefaultAllowed();
	}

	protected abstract void setDefaultAllowed();

	@SafeVarargs
	public final void set(T... values) {
		allowed = new LinkedHashSet<>(Arrays.asList(values));
	}

	public Set get() {
		return allowed;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy