public interface ValueIn
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<CharSequence> |
charSequenceThreadLocal |
static java.util.function.Consumer<ValueIn> |
DISCARD |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
applyToMarshallable(java.util.function.Function<WireIn,T> marshallableReader) |
default <E extends Enum<E>> |
asEnum(Class<E> eClass) |
default <E extends Enum<E>> |
asEnum(Class<E> eClass,
java.util.function.Consumer<E> eConsumer) |
default <E extends Enum<E>,T> |
asEnum(Class<E> eClass,
T t,
java.util.function.BiConsumer<T,E> teConsumer) |
boolean |
bool() |
<T> WireIn |
bool(T t,
net.openhft.chronicle.core.util.ObjBooleanConsumer<T> tFlag) |
default void |
byteBuffer(ByteBuffer bb) |
byte[] |
bytes() |
WireIn |
bytes(net.openhft.chronicle.bytes.Bytes<?> toBytes) |
WireIn |
bytes(ReadMarshallable wireInConsumer) |
WireIn |
bytesMatch(net.openhft.chronicle.bytes.BytesStore compareBytes,
net.openhft.chronicle.core.util.BooleanConsumer consumer) |
WireIn |
bytesSet(net.openhft.chronicle.bytes.PointerBytesStore toBytes) |
default net.openhft.chronicle.bytes.BytesStore |
bytesStore() |
<T> WireIn |
date(T t,
java.util.function.BiConsumer<T,java.time.LocalDate> tLocalDate) |
float |
float32() |
<T> WireIn |
float32(T t,
net.openhft.chronicle.core.util.ObjFloatConsumer<T> tf) |
double |
float64() |
<T> WireIn |
float64(T t,
java.util.function.ObjDoubleConsumer<T> td) |
boolean |
hasNext() |
boolean |
hasNextSequenceItem() |
short |
int16() |
<T> WireIn |
int16(T t,
net.openhft.chronicle.core.util.ObjShortConsumer<T> ti) |
int |
int32() |
<T> WireIn |
int32(net.openhft.chronicle.core.values.IntValue value,
T t,
java.util.function.BiConsumer<T,net.openhft.chronicle.core.values.IntValue> setter) |
<T> WireIn |
int32(T t,
java.util.function.ObjIntConsumer<T> ti) |
long |
int64() |
WireIn |
int64(net.openhft.chronicle.core.values.LongValue value) |
<T> WireIn |
int64(net.openhft.chronicle.core.values.LongValue value,
T t,
java.util.function.BiConsumer<T,net.openhft.chronicle.core.values.LongValue> setter) |
<T> WireIn |
int64(T t,
java.util.function.ObjLongConsumer<T> tl) |
<T> WireIn |
int64array(net.openhft.chronicle.core.values.LongArrayValues values,
T t,
java.util.function.BiConsumer<T,net.openhft.chronicle.core.values.LongArrayValues> setter) |
byte |
int8() |
<T> WireIn |
int8(T t,
net.openhft.chronicle.core.util.ObjByteConsumer<T> tb) |
boolean |
isTyped() |
<K,V> Map<K,V> |
map(Class<K> kClazz,
Class<V> vClass,
Map<K,V> usingMap)
reads the map from the wire
|
default void |
map(Map<String,String> usingMap)
reads the map from the wire
|
WireIn |
marshallable(ReadMarshallable object) |
default <E> E |
object(Class<E> clazz) |
<T,E> WireIn |
object(Class<E> clazz,
T t,
java.util.function.BiConsumer<T,E> e) |
<E> E |
object(E using,
Class<E> clazz) |
long |
readLength()
the length of the field as bytes including any encoding and header character
|
<T> WireIn |
sequence(T t,
java.util.function.BiConsumer<T,ValueIn> tReader) |
String |
text() |
default WireIn |
text(net.openhft.chronicle.bytes.Bytes sdo) |
default WireIn |
text(StringBuilder sb) |
default <T> WireIn |
text(T t,
java.util.function.BiConsumer<T,String> ts) |
net.openhft.chronicle.bytes.Bytes |
textTo(net.openhft.chronicle.bytes.Bytes bytes) |
StringBuilder |
textTo(StringBuilder sb) |
default Throwable |
throwable(boolean appendCurrentStack) |
<T> WireIn |
time(T t,
java.util.function.BiConsumer<T,java.time.LocalTime> setLocalTime) |
<K extends ReadMarshallable,V extends ReadMarshallable> |
typedMap(Map<K,V> usingMap) |
<T extends ReadMarshallable> |
typedMarshallable() |
<T> Class<T> |
typeLiteral() |
default <T> WireIn |
typeLiteral(T t,
java.util.function.BiConsumer<T,Class> classConsumer) |
default <T> WireIn |
typeLiteral(T t,
java.util.function.BiConsumer<T,Class> classConsumer,
Class defaultClass) |
<T> WireIn |
typeLiteralAsText(T t,
java.util.function.BiConsumer<T,CharSequence> classNameConsumer) |
Class |
typePrefix() |
<T> ValueIn |
typePrefix(T t,
java.util.function.BiConsumer<T,CharSequence> ts) |
int |
uint16() |
<T> WireIn |
uint16(T t,
java.util.function.ObjIntConsumer<T> ti) |
<T> WireIn |
uint32(T t,
java.util.function.ObjLongConsumer<T> tl) |
<T> WireIn |
uint8(T t,
net.openhft.chronicle.core.util.ObjShortConsumer<T> ti) |
<T> WireIn |
uuid(T t,
java.util.function.BiConsumer<T,UUID> tuuid) |
WireIn |
wireIn() |
<T> WireIn |
zonedDateTime(T t,
java.util.function.BiConsumer<T,java.time.ZonedDateTime> tZonedDateTime) |
static final java.util.function.Consumer<ValueIn> DISCARD
static final ThreadLocal<CharSequence> charSequenceThreadLocal
default <T> WireIn text(T t, @NotNull java.util.function.BiConsumer<T,String> ts)
default WireIn text(@NotNull StringBuilder sb)
default WireIn text(@NotNull net.openhft.chronicle.bytes.Bytes sdo)
@Nullable String text()
@Nullable StringBuilder textTo(@NotNull StringBuilder sb)
@Nullable
net.openhft.chronicle.bytes.Bytes textTo(@NotNull
net.openhft.chronicle.bytes.Bytes bytes)
@NotNull WireIn bytes(@NotNull net.openhft.chronicle.bytes.Bytes<?> toBytes)
@Nullable WireIn bytesSet(@NotNull net.openhft.chronicle.bytes.PointerBytesStore toBytes)
@NotNull WireIn bytesMatch(@NotNull net.openhft.chronicle.bytes.BytesStore compareBytes, net.openhft.chronicle.core.util.BooleanConsumer consumer)
@NotNull WireIn bytes(@NotNull ReadMarshallable wireInConsumer)
@Nullable byte[] bytes()
@Nullable default net.openhft.chronicle.bytes.BytesStore bytesStore()
default void byteBuffer(ByteBuffer bb)
@NotNull WireIn wireIn()
long readLength()
@NotNull <T> WireIn bool(T t, @NotNull net.openhft.chronicle.core.util.ObjBooleanConsumer<T> tFlag)
@NotNull <T> WireIn int8(@NotNull T t, @NotNull net.openhft.chronicle.core.util.ObjByteConsumer<T> tb)
@NotNull <T> WireIn uint8(@NotNull T t, @NotNull net.openhft.chronicle.core.util.ObjShortConsumer<T> ti)
@NotNull <T> WireIn int16(@NotNull T t, @NotNull net.openhft.chronicle.core.util.ObjShortConsumer<T> ti)
@NotNull <T> WireIn uint16(@NotNull T t, @NotNull java.util.function.ObjIntConsumer<T> ti)
@NotNull <T> WireIn int32(@NotNull T t, @NotNull java.util.function.ObjIntConsumer<T> ti)
@NotNull <T> WireIn uint32(@NotNull T t, @NotNull java.util.function.ObjLongConsumer<T> tl)
@NotNull <T> WireIn int64(@NotNull T t, @NotNull java.util.function.ObjLongConsumer<T> tl)
@NotNull <T> WireIn float32(@NotNull T t, @NotNull net.openhft.chronicle.core.util.ObjFloatConsumer<T> tf)
@NotNull <T> WireIn float64(@NotNull T t, @NotNull java.util.function.ObjDoubleConsumer<T> td)
@NotNull <T> WireIn time(@NotNull T t, @NotNull java.util.function.BiConsumer<T,java.time.LocalTime> setLocalTime)
@NotNull <T> WireIn zonedDateTime(@NotNull T t, @NotNull java.util.function.BiConsumer<T,java.time.ZonedDateTime> tZonedDateTime)
@NotNull <T> WireIn date(@NotNull T t, @NotNull java.util.function.BiConsumer<T,java.time.LocalDate> tLocalDate)
boolean hasNext()
boolean hasNextSequenceItem()
@NotNull <T> WireIn uuid(@NotNull T t, @NotNull java.util.function.BiConsumer<T,UUID> tuuid)
@NotNull <T> WireIn int64array(@Nullable net.openhft.chronicle.core.values.LongArrayValues values, T t, @NotNull java.util.function.BiConsumer<T,net.openhft.chronicle.core.values.LongArrayValues> setter)
@NotNull WireIn int64(@Nullable net.openhft.chronicle.core.values.LongValue value)
@NotNull <T> WireIn int64(@Nullable net.openhft.chronicle.core.values.LongValue value, T t, @NotNull java.util.function.BiConsumer<T,net.openhft.chronicle.core.values.LongValue> setter)
@NotNull <T> WireIn int32(@Nullable net.openhft.chronicle.core.values.IntValue value, T t, @NotNull java.util.function.BiConsumer<T,net.openhft.chronicle.core.values.IntValue> setter)
@NotNull <T> WireIn sequence(@NotNull T t, @NotNull java.util.function.BiConsumer<T,ValueIn> tReader)
<T> T applyToMarshallable(java.util.function.Function<WireIn,T> marshallableReader)
@Nullable <T extends ReadMarshallable> T typedMarshallable() throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeException@NotNull <T> ValueIn typePrefix(T t, @NotNull java.util.function.BiConsumer<T,CharSequence> ts)
@NotNull <T> WireIn typeLiteralAsText(T t, @NotNull java.util.function.BiConsumer<T,CharSequence> classNameConsumer) throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeExceptionBufferUnderflowException@NotNull default <T> WireIn typeLiteral(T t, @NotNull java.util.function.BiConsumer<T,Class> classConsumer) throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeException@NotNull default <T> WireIn typeLiteral(T t, @NotNull java.util.function.BiConsumer<T,Class> classConsumer, Class defaultClass)
@NotNull WireIn marshallable(@NotNull ReadMarshallable object) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowExceptionnet.openhft.chronicle.core.io.IORuntimeException<K extends ReadMarshallable,V extends ReadMarshallable> void typedMap(@NotNull Map<K,V> usingMap)
@Nullable <K,V> Map<K,V> map(@NotNull Class<K> kClazz, @NotNull Class<V> vClass, @NotNull Map<K,V> usingMap)
boolean bool()
throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeExceptionbyte int8()
short int16()
int uint16()
int int32()
long int64()
double float64()
float float32()
<T> Class<T> typeLiteral() throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeExceptionBufferUnderflowExceptiondefault Throwable throwable(boolean appendCurrentStack)
default <E extends Enum<E>> WireIn asEnum(Class<E> eClass, java.util.function.Consumer<E> eConsumer)
default <E extends Enum<E>,T> WireIn asEnum(Class<E> eClass, T t, java.util.function.BiConsumer<T,E> teConsumer)
@Nullable
default <E> E object(@NotNull
Class<E> clazz)
@Nullable
<E> E object(@Nullable
E using,
@NotNull
Class<E> clazz)
@Nullable <T,E> WireIn object(@NotNull Class<E> clazz, T t, java.util.function.BiConsumer<T,E> e)
boolean isTyped()
Class typePrefix()
Copyright © 2016. All rights reserved.