public interface ValueIn
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ValueIn.Reader |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
applyToMarshallable(Function<WireIn,T> marshallableReader) |
default int |
array(boolean[] array) |
default int |
array(byte[] array) |
default int |
array(net.openhft.chronicle.bytes.Bytes[] array) |
default int |
array(double[] array) |
default int |
array(int[] array) |
default int |
array(long[] array) |
default int |
arrayDelta(double[] array) |
default int |
arrayDelta(long[] array) |
default <E extends Enum<E>> |
asEnum(Class<E> eClass) |
default <E extends Enum<E>> |
asEnum(Class<E> eClass,
Consumer<E> eConsumer) |
default <E extends Enum<E>,T> |
asEnum(Class<E> eClass,
T t,
BiConsumer<T,E> teConsumer) |
boolean |
bool() |
WireIn |
bool(net.openhft.chronicle.core.values.BooleanValue ret) |
<T> WireIn |
bool(T t,
net.openhft.chronicle.core.util.ObjBooleanConsumer<T> tFlag) |
default net.openhft.chronicle.core.values.BooleanValue |
boolForBinding(net.openhft.chronicle.core.values.LongValue value) |
default void |
byteBuffer(ByteBuffer bb) |
byte[] |
bytes() |
WireIn |
bytes(net.openhft.chronicle.bytes.BytesOut toBytes) |
default WireIn |
bytes(net.openhft.chronicle.bytes.BytesOut toBytes,
boolean clearBytes) |
WireIn |
bytes(net.openhft.chronicle.bytes.ReadBytesMarshallable bytesMarshallable) |
default net.openhft.chronicle.bytes.BytesStore |
bytesLiteral() |
default WireIn |
bytesLiteral(net.openhft.chronicle.bytes.BytesOut toBytes) |
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 char |
character() |
default <O,T extends ReadMarshallable,C extends Collection<T>> |
collection(O o,
Function<O,T> tSupplier) |
default <T,C extends Collection<T>> |
collection(Supplier<C> supplier,
Class<T> t) |
default LocalDate |
date() |
<T> WireIn |
date(T t,
BiConsumer<T,LocalDate> tLocalDate) |
default LocalDateTime |
dateTime() |
float |
float32() |
default float |
float32(float previous) |
<T> WireIn |
float32(T t,
net.openhft.chronicle.core.util.ObjFloatConsumer<T> tf) |
double |
float64() |
default double |
float64(double previous) |
<T> WireIn |
float64(T t,
ObjDoubleConsumer<T> td) |
BracketType |
getBracketType() |
boolean |
hasNext() |
boolean |
hasNextSequenceItem() |
default WireIn |
int128(net.openhft.chronicle.core.values.TwoLongValue value) |
short |
int16() |
<T> WireIn |
int16(T t,
net.openhft.chronicle.core.util.ObjShortConsumer<T> ti) |
int |
int32() |
default int |
int32(int previous) |
WireIn |
int32(net.openhft.chronicle.core.values.IntValue value) |
<T> WireIn |
int32(net.openhft.chronicle.core.values.IntValue value,
T t,
BiConsumer<T,net.openhft.chronicle.core.values.IntValue> setter) |
<T> WireIn |
int32(T t,
ObjIntConsumer<T> ti) |
default net.openhft.chronicle.core.values.IntValue |
int32ForBinding(net.openhft.chronicle.core.values.IntValue value) |
default net.openhft.chronicle.core.values.IntValue |
int32ForBinding(net.openhft.chronicle.core.values.LongValue value)
Deprecated.
|
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,
BiConsumer<T,net.openhft.chronicle.core.values.LongValue> setter) |
<T> WireIn |
int64(T t,
ObjLongConsumer<T> tl) |
<T> WireIn |
int64array(net.openhft.chronicle.core.values.LongArrayValues values,
T t,
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,
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
|
Object |
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,
BiConsumer<T,E> e) |
default <E> E |
object(E using,
Class clazz) |
Object |
objectWithInferredType(Object using,
SerializationStrategy strategy,
Class type) |
default <T> void |
reader0(ValueIn v,
List<T> list,
List<T> buffer,
Supplier<T> bufferAdd) |
long |
readLength()
the length of the field as bytes including any encoding and header character
|
void |
resetState() |
default <T> boolean |
sequence(List<T> list,
List<T> buffer,
Supplier<T> bufferAdd)
sequence to use when using a cached buffer
|
<T> boolean |
sequence(List<T> list,
List<T> buffer,
Supplier<T> bufferAdd,
ValueIn.Reader reader0) |
<T> boolean |
sequence(T t,
BiConsumer<T,ValueIn> tReader) |
<T,K> WireIn |
sequence(T t,
K k,
TriConsumer<T,K,ValueIn> tReader) |
default <T> boolean |
sequence(T t,
SerializationStrategy<T> tReader) |
default <T> int |
sequenceWithLength(T t,
ToIntBiFunction<ValueIn,T> tReader) |
default <T> Set<T> |
set(Class<T> t) |
default <O,T extends ReadMarshallable> |
set(O o,
Function<O,T> tSupplier) |
WireIn |
skipValue() |
String |
text() |
default WireIn |
text(net.openhft.chronicle.bytes.Bytes sdo) |
default WireIn |
text(StringBuilder sb) |
default <T> WireIn |
text(T t,
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 LocalTime |
time() |
<T> WireIn |
time(T t,
BiConsumer<T,LocalTime> setLocalTime) |
<K extends ReadMarshallable,V extends ReadMarshallable> |
typedMap(Map<K,V> usingMap)
Deprecated.
use marshallableAsMap
|
<T> T |
typedMarshallable() |
default <T> T |
typedMarshallable(Function<Class,ReadMarshallable> marshallableFunction) |
<T> Class<T> |
typeLiteral() |
default <T> WireIn |
typeLiteral(T t,
BiConsumer<T,Class> classConsumer) |
default <T> WireIn |
typeLiteral(T t,
BiConsumer<T,Class> classConsumer,
Class defaultClass) |
<T> WireIn |
typeLiteralAsText(T t,
BiConsumer<T,CharSequence> classNameConsumer) |
Class |
typePrefix() |
<T> ValueIn |
typePrefix(T t,
BiConsumer<T,CharSequence> ts) |
default Object |
typePrefixOrObject(Class tClass) |
int |
uint16() |
<T> WireIn |
uint16(T t,
ObjIntConsumer<T> ti) |
<T> WireIn |
uint32(T t,
ObjLongConsumer<T> tl) |
<T> WireIn |
uint8(T t,
net.openhft.chronicle.core.util.ObjShortConsumer<T> ti) |
default UUID |
uuid() |
<T> WireIn |
uuid(T t,
BiConsumer<T,UUID> tuuid) |
WireIn |
wireIn() |
default ZonedDateTime |
zonedDateTime() |
<T> WireIn |
zonedDateTime(T t,
BiConsumer<T,ZonedDateTime> tZonedDateTime) |
@NotNull default <T> WireIn text(T t, @NotNull BiConsumer<T,String> ts)
@NotNull default WireIn text(@NotNull StringBuilder sb)
default char character()
@NotNull 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.BytesOut toBytes)
default WireIn bytes(@NotNull net.openhft.chronicle.bytes.BytesOut toBytes, boolean clearBytes)
@NotNull default WireIn bytesLiteral(@NotNull net.openhft.chronicle.bytes.BytesOut toBytes)
@Nullable default net.openhft.chronicle.bytes.BytesStore bytesLiteral()
@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(@NotNull
ByteBuffer bb)
@NotNull WireIn wireIn()
long readLength()
@NotNull WireIn skipValue()
@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 ObjIntConsumer<T> ti)
@NotNull <T> WireIn int32(@NotNull T t, @NotNull ObjIntConsumer<T> ti)
@NotNull <T> WireIn uint32(@NotNull T t, @NotNull ObjLongConsumer<T> tl)
@NotNull <T> WireIn int64(@NotNull T t, @NotNull 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 ObjDoubleConsumer<T> td)
@NotNull <T> WireIn time(@NotNull T t, @NotNull BiConsumer<T,LocalTime> setLocalTime)
@NotNull <T> WireIn zonedDateTime(@NotNull T t, @NotNull BiConsumer<T,ZonedDateTime> tZonedDateTime)
@NotNull <T> WireIn date(@NotNull T t, @NotNull BiConsumer<T,LocalDate> tLocalDate)
default LocalDate date()
default LocalTime time()
default LocalDateTime dateTime()
default ZonedDateTime zonedDateTime()
boolean hasNext()
boolean hasNextSequenceItem()
@NotNull <T> WireIn uuid(@NotNull T t, @NotNull BiConsumer<T,UUID> tuuid)
@NotNull <T> WireIn int64array(@Nullable net.openhft.chronicle.core.values.LongArrayValues values, T t, @NotNull BiConsumer<T,net.openhft.chronicle.core.values.LongArrayValues> setter)
@NotNull default WireIn int128(@NotNull net.openhft.chronicle.core.values.TwoLongValue value)
@NotNull WireIn int64(@NotNull net.openhft.chronicle.core.values.LongValue value)
@NotNull WireIn int32(@NotNull net.openhft.chronicle.core.values.IntValue value)
@NotNull
default net.openhft.chronicle.core.values.LongValue int64ForBinding(@Nullable
net.openhft.chronicle.core.values.LongValue value)
@NotNull
default net.openhft.chronicle.core.values.BooleanValue boolForBinding(@Nullable
net.openhft.chronicle.core.values.LongValue value)
WireIn bool(@NotNull net.openhft.chronicle.core.values.BooleanValue ret)
@NotNull @Deprecated default net.openhft.chronicle.core.values.IntValue int32ForBinding(@Nullable net.openhft.chronicle.core.values.LongValue value)
@NotNull
default net.openhft.chronicle.core.values.IntValue int32ForBinding(@Nullable
net.openhft.chronicle.core.values.IntValue value)
@NotNull <T> WireIn int64(@Nullable net.openhft.chronicle.core.values.LongValue value, T t, @NotNull BiConsumer<T,net.openhft.chronicle.core.values.LongValue> setter)
@NotNull <T> WireIn int32(@Nullable net.openhft.chronicle.core.values.IntValue value, T t, @NotNull BiConsumer<T,net.openhft.chronicle.core.values.IntValue> setter)
@NotNull
<T> boolean sequence(@NotNull
T t,
@NotNull
BiConsumer<T,ValueIn> tReader)
<T> boolean sequence(List<T> list, @NotNull List<T> buffer, Supplier<T> bufferAdd, ValueIn.Reader reader0)
default <T> boolean sequence(@NotNull
T t,
@NotNull
SerializationStrategy<T> tReader)
default <T> boolean sequence(@NotNull
List<T> list,
@NotNull
List<T> buffer,
@NotNull
Supplier<T> bufferAdd)
list - of items to populatebuffer - of objects of the same type to reusebufferAdd - supplier to call when the buffer needs extending@NotNull <T,K> WireIn sequence(@NotNull T t, K k, @NotNull TriConsumer<T,K,ValueIn> tReader)
default <T> int sequenceWithLength(@NotNull
T t,
@NotNull
ToIntBiFunction<ValueIn,T> tReader)
default int array(net.openhft.chronicle.bytes.Bytes[] array)
default int array(double[] array)
default int arrayDelta(double[] array)
default int array(boolean[] array)
default int array(long[] array)
default int arrayDelta(long[] array)
default int array(int[] array)
default int array(byte[] array)
default <T,C extends Collection<T>> C collection(@NotNull Supplier<C> supplier, Class<T> t)
@NotNull default <O,T extends ReadMarshallable> WireIn set(@NotNull O o, Function<O,T> tSupplier)
@NotNull default <O,T extends ReadMarshallable> WireIn list(@NotNull O o, Function<O,T> tSupplier)
@NotNull default <O,T extends ReadMarshallable,C extends Collection<T>> WireIn collection(@NotNull O o, Function<O,T> tSupplier)
@Nullable default <K,V> Map<K,V> marshallableAsMap(Class<K> kClass, @NotNull Class<V> vClass)
@Nullable default <K,V> Map<K,V> marshallableAsMap(Class<K> kClass, @NotNull Class<V> vClass, @NotNull Map<K,V> map)
@Nullable
<T> T typedMarshallable()
throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeException@Nullable
default <T> T typedMarshallable(@NotNull
Function<Class,ReadMarshallable> marshallableFunction)
throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeException@NotNull <T> ValueIn typePrefix(T t, @NotNull BiConsumer<T,CharSequence> ts)
@NotNull <T> WireIn typeLiteralAsText(T t, @NotNull 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 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 BiConsumer<T,Class> classConsumer, Class defaultClass)
@Nullable Object 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)
float float32()
default float float32(float previous)
double float64()
default double float64(double previous)
@Nullable <T> Class<T> typeLiteral() throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeExceptionBufferUnderflowExceptiondefault Throwable throwable(boolean appendCurrentStack)
@NotNull default <E extends Enum<E>> WireIn asEnum(Class<E> eClass, @NotNull Consumer<E> eConsumer)
@NotNull default <E extends Enum<E>,T> WireIn asEnum(Class<E> eClass, T t, @NotNull 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,
@Nullable
Class clazz)
@NotNull BracketType getBracketType()
boolean isNull()
@Nullable default <T,E> WireIn object(@NotNull Class<E> clazz, T t, @NotNull BiConsumer<T,E> e)
boolean isTyped()
@Nullable Class typePrefix()
void resetState()
@Nullable Object objectWithInferredType(Object using, SerializationStrategy strategy, Class type)
@NotNull default UUID uuid()
Copyright © 2019. All rights reserved.