Interface SetEx<E>

Type Parameters:
E - type of elements in this set
All Superinterfaces:
Collection<E>, Copyable<SetEx<E>>, Iterable<E>, Set<E>
All Known Implementing Classes:
AbstractHybridSet, AbstractSetEx, ArraySet, GenericBitSet, HybridBitSet, HybridHashSet, HybridIndexableSet, HybridLinkedHashSet, IndexableSet, IndexerBitSet

public interface SetEx<E> extends Set<E>, Copyable<SetEx<E>>
This interface extends Set to provide more useful APIs.
  • Method Details

    • addAllDiff

      SetEx<E> addAllDiff(Collection<? extends E> c)
      Adds all elements in collection c, and returns the difference set between c and this set (before the call).
      Returns:
      a set of elements that are contained in c but not in this set before the call.
    • hasOverlapWith

      boolean hasOverlapWith(Set<E> other)
      Returns:
      true if this set has at least one element contained in the given set.