Class ArraySet<T>

  • Type Parameters:
    T - Value key type
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, Set<T>

    @Immutable
    @Loggable(1)
    public final class ArraySet<T>
    extends Object
    implements Set<T>
    Set on top of array.

    This class is truly immutable. This means that it never changes its encapsulated values and is annotated with @Immutable annotation.

    Limitations: Encapsulated objects with exposed mutators can mutate their state. Since this Set implementation is backed by array,
    complexity of contains(java.lang.Object) is (O(n)).

    Since:
    0.1
    Suppressed Checkstyle violations:
    MissingDeprecatedCheck (270 lines)