public interface ValueIn
| Modifier and Type | Field and Description |
|---|---|
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() |
default WireIn |
bytes(net.openhft.chronicle.bytes.Bytes toBytes)
Deprecated.
|
WireIn |
bytes(net.openhft.chronicle.bytes.BytesOut toBytes) |
WireIn |
bytes(net.openhft.chronicle.bytes.ReadBytesMarshallable bytesMarshallable) |
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() |
default <O,T extends ReadMarshallable> |
collection(O o,
java.util.function.Function<O,T> tSupplier) |
default <T,C extends Collection<T>> |
collection(java.util.function.Supplier<C> supplier,
Class<T> t) |
default java.time.LocalDate |
date() |
<T> WireIn |
date(T t,
java.util.function.BiConsumer<T,java.time.LocalDate> tLocalDate) |
default java.time.LocalDateTime |
dateTime() |
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) |
BracketType |
getBracketType() |
boolean |
hasNext() |
boolean |
hasNextSequenceItem() |
short |
int16() |
<T> WireIn |
int16(T t,
net.openhft.chronicle.core.util.ObjShortConsumer<T> ti) |
int |
int32() |
default int |
int32(int previous) |
<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() |
default long |
int64(long previous) |
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) |
default net.openhft.chronicle.core.values.LongValue |
int64ForBinding(net.openhft.chronicle.core.values.LongValue value) |
byte |
int8() |
<T> WireIn |
int8(T t,
net.openhft.chronicle.core.util.ObjByteConsumer<T> tb) |
boolean |
isNull() |
boolean |
isTyped() |
default <T> List<T> |
list(Class<T> t) |
default <O,T extends ReadMarshallable> |
list(O o,
java.util.function.Function<O,T> tSupplier) |
<K,V> Map<K,V> |
map(Class<K> kClazz,
Class<V> vClass,
Map<K,V> usingMap)
Deprecated.
use marshallableAsMap
|
default void |
map(Map<String,String> usingMap)
Deprecated.
use marshallableAsMap
|
boolean |
marshallable(Object object,
SerializationStrategy strategy) |
default boolean |
marshallable(ReadMarshallable object) |
default boolean |
marshallable(Serializable object) |
default <K,V> Map<K,V> |
marshallableAsMap(Class<K> kClass,
Class<V> vClass) |
default <K,V> Map<K,V> |
marshallableAsMap(Class<K> kClass,
Class<V> vClass,
Map<K,V> map) |
default Object |
object() |
default <E> E |
object(Class<E> clazz) |
default <T,E> WireIn |
object(Class<E> clazz,
T t,
java.util.function.BiConsumer<T,E> e) |
default <E> E |
object(E using,
Class clazz) |
Object |
objectWithInferredType(Object using,
SerializationStrategy strategy,
Class type) |
default <K,V> Map<K,V> |
readAllAsMap(Class<K> kClass,
Class<V> vClass,
Map<K,V> map,
WireIn m) |
long |
readLength()
the length of the field as bytes including any encoding and header character
|
void |
resetState() |
<T> boolean |
sequence(T t,
java.util.function.BiConsumer<T,ValueIn> tReader) |
default <T> boolean |
sequence(T t,
SerializationStrategy<T> tReader) |
default <T> Set<T> |
set(Class<T> t) |
default <O,T extends ReadMarshallable> |
set(O o,
java.util.function.Function<O,T> tSupplier) |
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) |
default java.time.LocalTime |
time() |
<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)
Deprecated.
use marshallableAsMap
|
<T> T |
typedMarshallable() |
default <T> T |
typedMarshallable(java.util.function.Function<Class,ReadMarshallable> marshallableFunction) |
<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) |
default UUID |
uuid() |
<T> WireIn |
uuid(T t,
java.util.function.BiConsumer<T,UUID> tuuid) |
WireIn |
wireIn() |
default java.time.ZonedDateTime |
zonedDateTime() |
<T> WireIn |
zonedDateTime(T t,
java.util.function.BiConsumer<T,java.time.ZonedDateTime> tZonedDateTime) |
static final java.util.function.Consumer<ValueIn> DISCARD
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 @Deprecated default WireIn bytes(@NotNull net.openhft.chronicle.bytes.Bytes toBytes)
@NotNull WireIn bytes(@NotNull net.openhft.chronicle.bytes.BytesOut 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 net.openhft.chronicle.bytes.ReadBytesMarshallable bytesMarshallable)
@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)
default java.time.LocalDate date()
default java.time.LocalTime time()
default java.time.LocalDateTime dateTime()
default java.time.ZonedDateTime zonedDateTime()
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(@NotNull net.openhft.chronicle.core.values.LongValue value)
default net.openhft.chronicle.core.values.LongValue int64ForBinding(@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> boolean sequence(@NotNull
T t,
@NotNull
java.util.function.BiConsumer<T,ValueIn> tReader)
default <T> boolean sequence(@NotNull
T t,
@NotNull
SerializationStrategy<T> tReader)
default <T,C extends Collection<T>> C collection(java.util.function.Supplier<C> supplier, Class<T> t)
default <O,T extends ReadMarshallable> WireIn set(O o, java.util.function.Function<O,T> tSupplier)
default <O,T extends ReadMarshallable> WireIn list(O o, java.util.function.Function<O,T> tSupplier)
default <O,T extends ReadMarshallable> WireIn collection(O o, java.util.function.Function<O,T> tSupplier)
default <K,V> Map<K,V> marshallableAsMap(Class<K> kClass, Class<V> vClass, Map<K,V> map)
default <K,V> Map<K,V> readAllAsMap(Class<K> kClass, Class<V> vClass, Map<K,V> map, WireIn m)
<T> T applyToMarshallable(java.util.function.Function<WireIn,T> marshallableReader)
@Nullable
<T> T typedMarshallable()
throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeExceptiondefault <T> T typedMarshallable(java.util.function.Function<Class,ReadMarshallable> marshallableFunction) 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)
boolean marshallable(Object object, SerializationStrategy strategy) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowExceptionnet.openhft.chronicle.core.io.IORuntimeExceptiondefault boolean marshallable(@NotNull
Serializable object)
throws BufferUnderflowException,
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowExceptionnet.openhft.chronicle.core.io.IORuntimeExceptiondefault boolean marshallable(@NotNull
ReadMarshallable object)
throws BufferUnderflowException,
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowExceptionnet.openhft.chronicle.core.io.IORuntimeException@Deprecated default void map(@NotNull Map<String,String> usingMap)
@Deprecated <K extends ReadMarshallable,V extends ReadMarshallable> void typedMap(@NotNull Map<K,V> usingMap)
@Deprecated @Nullable <K,V> Map<K,V> map(@NotNull Class<K> kClazz, @NotNull Class<V> vClass, Map<K,V> usingMap)
boolean bool()
byte int8()
short int16()
int uint16()
int int32()
default int int32(int previous)
long int64()
default long int64(long previous)
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 default Object object()
@Nullable
default <E> E object(@Nullable
E using,
Class clazz)
BracketType getBracketType()
boolean isNull()
@Nullable default <T,E> WireIn object(@NotNull Class<E> clazz, T t, java.util.function.BiConsumer<T,E> e)
boolean isTyped()
@Nullable Class typePrefix()
void resetState()
@Nullable Object objectWithInferredType(Object using, SerializationStrategy strategy, Class type)
default UUID uuid()
Copyright © 2016. All rights reserved.