Class UnmodifiableCollection<E>

java.lang.Object
org.opendaylight.yangtools.util.UnmodifiableCollection<E>
Type Parameters:
E - the type of elements in this collection
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>

public final class UnmodifiableCollection<E> extends Object implements Collection<E>, Serializable
An unmodifiable view over a Collection. Unlike the view returned via Collections.unmodifiableCollection(Collection), this class checks its argument to ensure multiple encapsulation does not occur.

This class checks the argument so it prevents multiple encapsulation. Subclasses of ImmutableCollection are also recognized and not encapsulated.

See Also: