Interface LongSet

All Superinterfaces:
Iterable<LongCursor>, LongCollection, LongContainer
All Known Implementing Classes:
LongHashSet, LongScatterSet

@Generated(date="2024-02-21T00:00:00+0000", value="KTypeSet.java") public interface LongSet extends LongCollection
A set of longs.
  • Method Details

    • add

      boolean add(long k)
      Adds k to the set.
      Returns:
      Returns true if this element was not part of the set before. Returns false if an equal element is part of the set, and replaces the existing equal element with the argument (if keys are object types).
    • visualizeKeyDistribution

      String visualizeKeyDistribution(int characters)
      Visually depict the distribution of keys.
      Parameters:
      characters - The number of characters to "squeeze" the entire buffer into.
      Returns:
      Returns a sequence of characters where '.' depicts an empty fragment of the internal buffer and 'X' depicts full or nearly full capacity within the buffer's range and anything between 1 and 9 is between.