public static interface EntryView.ReadEntryView<K,V> extends MetaParam.Lookup
MetaParam information.
DESIGN RATIONALES:
Optional
first.
Optional? Why not get rid of it and only have
get() method return null? Because nulls are evil. If a value might not
be there, the user can use Optional to find out if the value might
be there and deal with non-present values in a more functional way.
| Modifier and Type | Method and Description |
|---|---|
Optional<V> |
find()
Optional value.
|
V |
get()
Returns a non-null value if the key has a value associated with it or
throws
NoSuchElementException if no value is associated with
the. |
K |
key()
Key of the read-only entry view.
|
findMetaParamK key()
V get() throws NoSuchElementException
NoSuchElementException if no value is associated with
the.NoSuchElementException - if no value is associated with the key.Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.