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

org.codefilarete.tool.collection.ReadOnlySet Maven / Gradle / Ivy

package org.codefilarete.tool.collection;

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

/**
 * A marking class for {@link Set} which elements cannot be added nor removed.
 *
 * @param  element type
 * @author Guillaume Mary
 */
public class ReadOnlySet extends ReadOnlyCollection> implements Set {
	
	public ReadOnlySet() {
		this(new HashSet<>());
	}
	
	public ReadOnlySet(Set set) {
		super((Set) set);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy