Package com.carrotsearch.hppc
Interface ObjectSet<KType>
-
- All Superinterfaces:
java.lang.Iterable<ObjectCursor<KType>>
,ObjectCollection<KType>
,ObjectContainer<KType>
- All Known Implementing Classes:
ObjectHashSet
,ObjectIdentityHashSet
,ObjectScatterSet
@Generated(date="2021-05-28T03:45:41+0000", value="KTypeSet.java") public interface ObjectSet<KType> extends ObjectCollection<KType>
A set ofObject
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
add(KType k)
Addsk
to the set.java.lang.String
visualizeKeyDistribution(int characters)
Visually depict the distribution of keys.
-
-
-
Method Detail
-
add
boolean add(KType k)
Addsk
to the set.- Returns:
- Returns
true
if this element was not part of the set before. Returnsfalse
if an equal element is part of the set, and replaces the existing equal element with the argument (if keys are object types).
-
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.
-
-