Class Immutable<X>

  • Type Parameters:
    X - Type of source item
    All Implemented Interfaces:
    Iterable<X>, Collection<X>

    public final class Immutable<X>
    extends Object
    implements Collection<X>
    Decorator that doesn't allow any mutation of the wrapped Collection.

    There is no thread-safety guarantee.

    Since:
    1.16