public class JavaBinCodec.BinEntryWriter extends Object implements MapWriter.EntryWriter
Constructor and Description |
---|
BinEntryWriter() |
Modifier and Type | Method and Description |
---|---|
BiConsumer<CharSequence,Object> |
getBiConsumer() |
MapWriter.EntryWriter |
put(CharSequence k,
boolean v) |
MapWriter.EntryWriter |
put(CharSequence k,
CharSequence v)
This is an optimization to avoid the instanceof checks.
|
MapWriter.EntryWriter |
put(CharSequence k,
double v) |
MapWriter.EntryWriter |
put(CharSequence k,
float v) |
MapWriter.EntryWriter |
put(CharSequence k,
int v) |
MapWriter.EntryWriter |
put(CharSequence k,
long v) |
MapWriter.EntryWriter |
put(CharSequence k,
Object v)
Writes a key value into the map
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
put, putIfNotNull, putNoEx, putStringIfNotNull
public MapWriter.EntryWriter put(CharSequence k, Object v) throws IOException
MapWriter.EntryWriter
put
in interface MapWriter.EntryWriter
k
- The keyv
- The value can be any supported objectIOException
public MapWriter.EntryWriter put(CharSequence k, int v) throws IOException
put
in interface MapWriter.EntryWriter
IOException
public MapWriter.EntryWriter put(CharSequence k, long v) throws IOException
put
in interface MapWriter.EntryWriter
IOException
public MapWriter.EntryWriter put(CharSequence k, float v) throws IOException
put
in interface MapWriter.EntryWriter
IOException
public MapWriter.EntryWriter put(CharSequence k, double v) throws IOException
put
in interface MapWriter.EntryWriter
IOException
public MapWriter.EntryWriter put(CharSequence k, boolean v) throws IOException
put
in interface MapWriter.EntryWriter
IOException
public MapWriter.EntryWriter put(CharSequence k, CharSequence v) throws IOException
MapWriter.EntryWriter
put
in interface MapWriter.EntryWriter
IOException
public BiConsumer<CharSequence,Object> getBiConsumer()
getBiConsumer
in interface MapWriter.EntryWriter
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.