public class YamlKeys extends Object
Internally, this class employs a dynamic array resizing strategy to accommodate varying numbers of offsets without a significant overhead in space.
| Constructor and Description |
|---|
YamlKeys() |
| Modifier and Type | Method and Description |
|---|---|
int |
count()
Returns the number of stored offsets in the collection.
|
long[] |
offsets()
Retrieves all the stored offsets.
|
void |
push(long offset)
Adds a new offset to the collection.
|
void |
removeIndex(int i)
Removes the offset at
i, shifting remaining values left by one. |
void |
reset()
Resets the count of offsets to zero.
|
public void push(long offset)
offset - The offset value to be added.public int count()
public long[] offsets()
public void reset()
public void removeIndex(int i)
i, shifting remaining values left by one.Copyright © 2026 Chronicle Software Ltd. All rights reserved.