Interface IBmLongSet

All Known Implementing Classes:
BmLongHashSet, BmLongSegmentSyncSet

public interface IBmLongSet
A set of long values.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A set entry.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(long element)
    Adds the specified element.
    void
    addAll(long[] array)
    Adds all the values from the specified array.
    void
    addAll(IBmLongSet collection)
    Adds all the values from the specified collection.
    void
    addAll(Iterable<Long> collection)
    Adds all the values from the specified collection.
    void
    Removes all the elements.
    boolean
    contains(long element)
    Checks if the set contains the specified element.
    Gets entry iterator.
    boolean
    Checks whether this set is empty.
    Gets the long value iterator
    Gets collection of elements.
    boolean
    remove(long element)
    Removes the specified element.
    int
    Returns the number of elements in this set.
  • Method Details

    • add

      void add(long element)
      Adds the specified element.
      Parameters:
      element - the element to add.
    • addAll

      void addAll(IBmLongSet collection)
      Adds all the values from the specified collection.
      Parameters:
      collection - the collection of values to add.
    • addAll

      void addAll(Iterable<Long> collection)
      Adds all the values from the specified collection.
      Parameters:
      collection - the collection of values to add.
    • addAll

      void addAll(long[] array)
      Adds all the values from the specified array.
      Parameters:
      array - the array. May not be null.
    • clear

      void clear()
      Removes all the elements.
      See Also:
    • contains

      boolean contains(long element)
      Checks if the set contains the specified element.
      Parameters:
      element - the element.
      Returns:
      true if set contains the specified element, false otherwise.
    • entryIterator

      Iterable<IBmLongSet.Entry> entryIterator()
      Gets entry iterator.
      Returns:
      an entry iterator.
    • iterator

      IBmLongIterator iterator()
      Gets the long value iterator
      Returns:
      The iterator of values. May not be null
    • isEmpty

      boolean isEmpty()
      Checks whether this set is empty.
      Returns:
      true if this set has no elements, false otherwise.
      See Also:
    • keys

      Collection<Long> keys()
      Gets collection of elements.
      Returns:
      the collection of elements.
    • remove

      boolean remove(long element)
      Removes the specified element.
      Parameters:
      element - the element to remove.
      Returns:
      true if this set contained the specified element, false otherwise.
    • size

      int size()
      Returns the number of elements in this set.
      Returns:
      the number of elements in this set.