org.violetlib.collections

Interface ISet<V>

  • Type Parameters:
    V - The type of the values.
    All Superinterfaces:
    ICollection<V>, IIterable<V>, Iterable<V>
    public interface ISet<V> extends ICollection<V>, IIterable<V>
    An immutable set of elements. Null elements are not permitted. The iteration order may be unspecified.
    • Fields 
      Modifier and Type Field and Description
      Ordinary member indicator ORDERED Reveal DetailHide Detail
       
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator builder Reveal DetailHide Detail
      Create a builder for a set.
      Ordinary member indicator builder Reveal DetailHide Detail
      Create a builder for a set whose iteration order is defined by the order in which elements are added to the builder.
      Inherited member indicator cast Reveal DetailHide Detail
      Cast a collection to a specific type.
      Ordinary member indicator cast Reveal DetailHide Detail
      Cast a set to a specific type.
      Inherited member indicator concatenate Reveal DetailHide Detail
       
      Inherited member indicator concatenate Reveal DetailHide Detail
       
      Inherited member indicator concatenateIterators Reveal DetailHide Detail
       
      Ordinary member indicator create Reveal DetailHide Detail
      Create a set containing the specified elements.
      Ordinary member indicator create Reveal DetailHide Detail
      Create a set containing the specified elements.
      Ordinary member indicator empty Reveal DetailHide Detail
      Return an empty set.
      Inherited member indicator emptyIterator Reveal DetailHide Detail
       
      Inherited member indicator from Reveal DetailHide Detail
      Create an IIterable from an Iterable.
      Ordinary member indicator intersection Reveal DetailHide Detail
       
      Ordinary member indicator of Reveal DetailHide Detail
       
      Ordinary member indicator of Reveal DetailHide Detail
       
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator choose Reveal DetailHide Detail
      Return one element of this set.
      Ordinary member indicator chooseOptional Reveal DetailHide Detail
      Return one element of this set, or null if the set is empty.
      Ordinary member indicator contains Reveal DetailHide Detail
      Return true if and only if the specified element is an element of the collection.
      Ordinary member indicator element Reveal DetailHide Detail
      Return the sole element of this set.
      Ordinary member indicator extending Reveal DetailHide Detail
      Return a set containing the members of this set and the specified value.
      Ordinary member indicator extendingAll Reveal DetailHide Detail
      Return a set containing the members of this set and the specified values.
      Ordinary member indicator filter Reveal DetailHide Detail
       
      Inherited member indicator find Reveal DetailHide Detail
      Visit the elements of the collection until the visitor returns a non-null result.
      Inherited member indicator find Reveal DetailHide Detail
      Visit each element of the collection until the visitor returns a non-null result.
      Inherited member indicator forEach Reveal DetailHide Detail
       
      Ordinary member indicator intersecting Reveal DetailHide Detail
       
      Ordinary member indicator isEmpty Reveal DetailHide Detail
      Return true if and only if there are no elements in the collection.
      Inherited member indicator iterator Reveal DetailHide Detail
      Returns an iterator over non-null elements of type T.
      Ordinary member indicator map Reveal DetailHide Detail
       
      Ordinary member indicator ordered Reveal DetailHide Detail
      Return a set containing the members of this collection whose iteration order is defined by the natural sort order.
      Ordinary member indicator ordered Reveal DetailHide Detail
      Return a set containing the members of this collection whose iteration order is defined by the specified comparator.
      Ordinary member indicator removing Reveal DetailHide Detail
      Return a set containing the members of this set excluding the specified value.
      Ordinary member indicator removingAll Reveal DetailHide Detail
       
      Ordinary member indicator size Reveal DetailHide Detail
      Return the number of elements in the collection.
      Inherited member indicator sort Reveal DetailHide Detail
      Return a list containing the members of this collection, sorted in the natural sort order.
      Inherited member indicator sort Reveal DetailHide Detail
      Return a list containing the same elements as this collection, but sorted using the specified comparator.
      Inherited member indicator spliterator Reveal DetailHide Detail
      Return a Spliterator that yields the elements of the collection.
      Inherited member indicator stream Reveal DetailHide Detail
      Return a stream of the elements of the collection.
      Inherited member indicator toJavaArray Reveal DetailHide Detail
      Return a new Java array containing the elements of this collection.
      Inherited member indicator toJavaList Reveal DetailHide Detail
      Return a new Java list containing the elements of this collection, in the same order (if the collection defines an order).
      Inherited member indicator toJavaSet Reveal DetailHide Detail
      Return a new Java set containing the elements of this collection.
      Inherited member indicator toJavaUnmodifiableList Reveal DetailHide Detail
      Return a new unmodifiable Java list containing the elements of this collection, in the same order (if the collection defines an order).
      Inherited member indicator toJavaUnmodifiableSet Reveal DetailHide Detail
      Return a new Java set containing the elements of this collection.
      Inherited member indicator visit Reveal DetailHide Detail
      Visit each element of the collection.