public static interface MapWriter.EntryWriter
put
more than once
for the same key.Modifier and Type | Method and Description |
---|---|
default BiConsumer<CharSequence,Object> |
getBiConsumer() |
default MapWriter.EntryWriter |
put(CharSequence k,
boolean v) |
default MapWriter.EntryWriter |
put(CharSequence k,
CharSequence v)
This is an optimization to avoid the instanceof checks.
|
default MapWriter.EntryWriter |
put(CharSequence k,
double v) |
default MapWriter.EntryWriter |
put(CharSequence k,
float v) |
default MapWriter.EntryWriter |
put(CharSequence k,
int v) |
default MapWriter.EntryWriter |
put(CharSequence k,
long v) |
MapWriter.EntryWriter |
put(CharSequence k,
Object v)
Writes a key value into the map
|
default MapWriter.EntryWriter |
put(CharSequence k,
Object v,
BiPredicate<CharSequence,Object> p) |
default MapWriter.EntryWriter |
putIfNotNull(CharSequence k,
Object v) |
default MapWriter.EntryWriter |
putNoEx(CharSequence k,
Object v) |
default MapWriter.EntryWriter |
putStringIfNotNull(CharSequence k,
Object v) |
MapWriter.EntryWriter put(CharSequence k, Object v) throws IOException
k
- The keyv
- The value can be any supported objectIOException
default MapWriter.EntryWriter putNoEx(CharSequence k, Object v)
default MapWriter.EntryWriter put(CharSequence k, Object v, BiPredicate<CharSequence,Object> p) throws IOException
IOException
default MapWriter.EntryWriter putIfNotNull(CharSequence k, Object v) throws IOException
IOException
default MapWriter.EntryWriter putStringIfNotNull(CharSequence k, Object v) throws IOException
IOException
default MapWriter.EntryWriter put(CharSequence k, int v) throws IOException
IOException
default MapWriter.EntryWriter put(CharSequence k, long v) throws IOException
IOException
default MapWriter.EntryWriter put(CharSequence k, float v) throws IOException
IOException
default MapWriter.EntryWriter put(CharSequence k, double v) throws IOException
IOException
default MapWriter.EntryWriter put(CharSequence k, boolean v) throws IOException
IOException
default MapWriter.EntryWriter put(CharSequence k, CharSequence v) throws IOException
IOException
default BiConsumer<CharSequence,Object> getBiConsumer()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.