public interface ScheduledEntries<K,V> extends Iterable<Map.Entry<K,V>>
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key,
V value)
Adds an entry using the specified key and value.
|
boolean |
isSorted()
Indicates whether the entries are sorted, or if iteration order recapitulates insertion order.
|
default Map.Entry<K,V> |
peek()
Returns, but does not remove, the first entry.
|
void |
remove(K key)
Removes the entry with the specified key.
|
forEach, iterator, spliteratorboolean isSorted()
void add(K key, V value)
key - an entry keyvalue - an entry valuevoid remove(K key)
key - an entry keyCopyright © 2022 JBoss by Red Hat. All rights reserved.