public static interface EntryView.ReadEntryView<K,V> extends MetaParam.Lookup
It exposes both
find() methods for
convenience. If the caller knows for sure that the value will be
get() offers the convenience of retrieving the value
directly without having to get an
Optional first. As a result
there's no value associated with the entry. If the caller is unsure
of whether the value is present,
find() should be used.
This approach avoids the user having to do null checks.
|Modifier and Type||Method and Description|
Returns a non-null value if the key has a value associated with it or throws
Key of the read-only entry view.
V get() throws NoSuchElementException
NoSuchElementExceptionif no value is associated with the.
NoSuchElementException- if no value is associated with the key.
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.