Package com.carrotsearch.hppc
Interface LongSet
- All Superinterfaces:
java.lang.Iterable<LongCursor>
,LongCollection
,LongContainer
- All Known Implementing Classes:
LongHashSet
,LongWormSet
@Generated(date="2020-12-14T17:00:53+0100", value="KTypeSet.java") public interface LongSet extends LongCollection
A set of
long
s.-
Method Summary
Modifier and Type Method Description boolean
add(long k)
Addsk
to the set.java.lang.String
visualizeKeyDistribution(int characters)
Visually depict the distribution of keys.
-
Method Details
-
add
boolean add(long k)Addsk
to the set.- Returns:
- Returns
true
if this element was not part of the set before. Returnsfalse
if an equal element is already part of the set, does not replace the existing element with the argument.
-
visualizeKeyDistribution
java.lang.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.
-