Class ConstantEntryList
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.ConstantEntryList
-
class ConstantEntryList extends java.lang.Object
A list of objects with an associated timestamp. The list is optimized for the case of only a single value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ConstantEntryList.ConstantEntry
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<ConstantEntryList.ConstantEntry>
CHRONOLOGICAL
private IPoolFactory<?>
factory
private ConstantEntryList.ConstantEntry
firstEntry
private java.util.List<ConstantEntryList.ConstantEntry>
list
-
Constructor Summary
Constructors Constructor Description ConstantEntryList(java.lang.Object firstValue, long timestamp, IPoolFactory<?> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(java.lang.Object value, long timestamp)
(package private) java.lang.Object
getFirstObjectAfter(long objectIdOfThisEntry, long timestamp)
Returns the value associated with the smallest timestamp larger than or equals totimestamp
.(package private) void
sort()
(package private) void
touchAll(long objectIdOfThisEntry)
-
-
-
Field Detail
-
CHRONOLOGICAL
private static final java.util.Comparator<ConstantEntryList.ConstantEntry> CHRONOLOGICAL
-
factory
private final IPoolFactory<?> factory
-
firstEntry
private final ConstantEntryList.ConstantEntry firstEntry
-
list
private java.util.List<ConstantEntryList.ConstantEntry> list
-
-
Constructor Detail
-
ConstantEntryList
ConstantEntryList(java.lang.Object firstValue, long timestamp, IPoolFactory<?> factory)
-
-
Method Detail
-
add
void add(java.lang.Object value, long timestamp)
-
sort
void sort()
-
touchAll
void touchAll(long objectIdOfThisEntry)
-
getFirstObjectAfter
java.lang.Object getFirstObjectAfter(long objectIdOfThisEntry, long timestamp)
Returns the value associated with the smallest timestamp larger than or equals totimestamp
.- Parameters:
objectIdOfThisEntry
- The object id of all objects in this entry listtimestamp
-- Returns:
-
-