Class UnmodifiableSet<E>

  • Type Parameters:
    E - The set element type.
    All Implemented Interfaces:
    Iterable<E>, Collection<E>, Set<E>

    public final class UnmodifiableSet<E>
    extends UnmodifiableCollection<E>
    implements Set<E>
    Simple immutable set. This set is order-preserving, so when iterating the elements, they will come in the same order as added. If same value was added multiple times, the first entry counts.