Class SingletonSet<E>

java.lang.Object
org.opendaylight.yangtools.util.SingletonSet<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>, Immutable

public abstract sealed class SingletonSet<E> extends Object implements Set<E>, Immutable, Serializable
A Set containing a single value. For some reason neither Java nor Guava provide direct access to the retained element -- which is desirable in some situations, as is the case in SharedSingletonMap.entrySet().
See Also: