public static interface EntryView.WriteEntryView<V>
| Modifier and Type | Method and Description |
|---|---|
Void |
remove()
Removes the value and any metadata parameters associated with it.
|
Void |
set(V value,
MetaParam.Writable... metas)
Set this value along with optional metadata parameters.
|
Void set(V value, MetaParam.Writable... metas)
Void remove()
Consumer
instead of Function. This is what of those annoying side
effects of the java language, which didn't make `void` an Object.
Optional.empty() instead of having a
set(Object, MetaParam.Writable[]) and remove()?
The two-method approach feels cleaner and less cumbersome than
having to always pass in Optional to set().
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.