public class RegexPartitionStateRepoScheduleStateImpl extends Object implements RegexPartitionStateRepoScheduleState
Constructor and Description |
---|
RegexPartitionStateRepoScheduleStateImpl(RegexPartitionTerminationStateComparator terminationStateCompare) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(long matchBeginTime) |
boolean |
findRemoveAddToList(long matchBeginTime,
RegexNFAStateEntry state,
List<RegexNFAStateEntry> foundStates)
Find and remove operation, wherein removed items are added to the found list,
returning an indicator whether the item was found and removed
|
long |
firstKey() |
Object |
get(long matchBeginTime) |
boolean |
isEmpty() |
boolean |
putOrAdd(long matchBeginTime,
RegexNFAStateEntry state)
Add entry returning true if the key did not exist.
|
void |
removeAddRemoved(long matchBeginTime,
List<RegexNFAStateEntry> foundStates) |
public RegexPartitionStateRepoScheduleStateImpl(RegexPartitionTerminationStateComparator terminationStateCompare)
public boolean isEmpty()
isEmpty
in interface RegexPartitionStateRepoScheduleState
public boolean putOrAdd(long matchBeginTime, RegexNFAStateEntry state)
RegexPartitionStateRepoScheduleState
putOrAdd
in interface RegexPartitionStateRepoScheduleState
matchBeginTime
- keystate
- entrypublic Object get(long matchBeginTime)
public long firstKey()
firstKey
in interface RegexPartitionStateRepoScheduleState
public void removeAddRemoved(long matchBeginTime, List<RegexNFAStateEntry> foundStates)
removeAddRemoved
in interface RegexPartitionStateRepoScheduleState
public boolean containsKey(long matchBeginTime)
containsKey
in interface RegexPartitionStateRepoScheduleState
public boolean findRemoveAddToList(long matchBeginTime, RegexNFAStateEntry state, List<RegexNFAStateEntry> foundStates)
RegexPartitionStateRepoScheduleState
findRemoveAddToList
in interface RegexPartitionStateRepoScheduleState
matchBeginTime
- keystate
- entryfoundStates
- list to be added to