public enum Wires extends Enum<Wires>
| Modifier and Type | Field and Description |
|---|---|
static List<Function<Class<?>,SerializationStrategy>> |
CLASS_STRATEGY_FUNCTIONS |
static int |
END_OF_DATA |
static boolean |
GENERATE_TUPLES |
static int |
LENGTH_MASK |
static int |
META_DATA |
static net.openhft.chronicle.bytes.Bytes<?> |
NO_BYTES |
static int |
NOT_COMPLETE |
static int |
NOT_COMPLETE_UNKNOWN_LENGTH |
static int |
NOT_INITIALIZED |
static int |
SPB_HEADER_SIZE |
static int |
UNKNOWN_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.core.scoped.ScopedResource<Wire> |
acquireBinaryWireScoped() |
static @NotNull net.openhft.chronicle.core.scoped.ScopedResource<net.openhft.chronicle.bytes.Bytes<Void>> |
acquireBytesScoped() |
static boolean |
acquireLock(@NotNull net.openhft.chronicle.bytes.BytesStore<?,?> store,
long position)
Acquires a lock on the given BytesStore at the specified position.
|
static net.openhft.chronicle.core.scoped.ScopedResource<StringBuilder> |
acquireStringBuilderScoped() |
static net.openhft.chronicle.bytes.Bytes<?> |
asBinary(@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output) |
static net.openhft.chronicle.bytes.Bytes<?> |
asJson(@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output) |
static @NotNull CharSequence |
asText(@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output) |
static @NotNull BinaryWire |
binaryWireForRead(net.openhft.chronicle.bytes.Bytes<?> in,
long position,
long length)
Creates a BinaryWire for reading with the given input, position, and length.
|
static @NotNull BinaryWire |
binaryWireForWrite(net.openhft.chronicle.bytes.Bytes<?> in,
long position,
long length)
Creates a BinaryWire for writing with the given input, position, and length.
|
static <T> T |
copyTo(Object source,
T target)
Copy fields from source to target by marshalling out and then in.
|
static <T extends Marshallable> |
deepCopy(T marshallable)
Creates a deep copy of the provided marshallable object.
|
static boolean |
dtoInterface(Class<?> clazz)
Determines if the provided class is an interface and qualifies as a DTO (Data Transfer Object).
|
static boolean |
exceedsMaxLength(long length)
Checks if the given length exceeds the maximum allowed length.
|
static FieldInfo |
fieldInfo(@NotNull Class<?> aClass,
String name)
Retrieves field information for a specific field of a given class.
|
static @NotNull Map<String,FieldInfo> |
fieldInfoMap(@NotNull Class<?> aClass)
Retrieves a map of field names to their information for a given class.
|
static @NotNull List<FieldInfo> |
fieldInfos(@NotNull Class<?> aClass)
Retrieves the list of field information for a given class.
|
static String |
fromAlignedSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
Converts the provided bytes, which represent aligned size-prefixed blobs,
into a readable string format.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
This decodes some Bytes where the first 4-bytes is the length.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean abbrev)
Converts the provided bytes, representing size-prefixed blobs,
into a readable string format with the option to abbreviate.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean padding,
boolean abbrev)
Converts the provided bytes, which represent size-prefixed blobs,
into a readable string format with options for padding and abbreviation.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position)
Converts the provided bytes, representing size-prefixed blobs,
into a readable string format from the specified position.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
boolean padding)
Converts the provided bytes, representing size-prefixed blobs,
into a readable string format from a specified position and with the option to pad.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
long length)
Creates a string representation of a specific portion of size-prefixed blob data.
|
static String |
fromSizePrefixedBlobs(@NotNull DocumentContext dc)
Converts the contents of the provided
DocumentContext
which represent size-prefixed blobs into a readable string format. |
static String |
fromSizePrefixedBlobs(@NotNull WireIn wireIn)
Converts the contents of the provided
WireIn
which represent size-prefixed blobs into a readable string format. |
static String |
fromSizePrefixedBlobs(@NotNull WireIn wireIn,
boolean abbrev)
Converts the contents of the provided
WireIn
which represent size-prefixed blobs into a readable string format,
with the option to abbreviate the output. |
static <T> T |
getField(@NotNull Object o,
String name,
Class<T> tClass)
Retrieves the value of a specific field from an object and converts it to the desired type.
|
static long |
getLongField(@NotNull Object o,
String name)
Retrieves the long value of a specific field from an object.
|
static void |
init()
A utility method to force the static initialization of this enum.
|
static boolean |
isData(int len)
Checks if the given length represents data and not meta-data.
|
static boolean |
isEndOfFile(int num)
Checks if a given integer represents the end of file marker.
|
static boolean |
isEquals(@NotNull Object o1,
@NotNull Object o2)
Checks if two objects are of the same type and equal based on their serialized representation.
|
static boolean |
isInternal(@NotNull Object value)
Determines if the value's package name is internal to Java.
|
static boolean |
isKnownLength(int len)
Checks if the given length represents a known length (neither unknown nor meta-data).
|
static boolean |
isNotComplete(int header)
Checks if the given header is not complete or zero.
|
static boolean |
isNotInitialized(int len)
Checks if the given length is not initialized.
|
static boolean |
isReady(int header)
Checks if the given header is ready (complete and not zero).
|
static boolean |
isReadyData(int header)
Checks if the given header represents ready data (neither meta-data nor incomplete) and is not zero.
|
static boolean |
isReadyMetaData(int len)
Checks if the given length represents ready meta-data.
|
static int |
lengthOf(int len)
Extracts the length from the given length value.
|
static <E> E |
object0(ValueIn in,
E using,
@Nullable Class<? extends E> clazz)
Reads and validates an object from the given input.
|
static <E> E |
object0(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
boolean bestEffort)
Deserialize an object from the provided input and validate it.
|
static <E> E |
object1(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
boolean bestEffort)
Deserialize an object from the provided input based on the defined strategy and constraints.
|
static <E> E |
objectDate(ValueIn in,
E using)
Reads a date object from the given input.
|
static <E> E |
objectMap(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
@NotNull SerializationStrategy strategy)
Reads a map of objects from the given input, using a specified serialization strategy.
|
static <E> E |
objectSequence(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
SerializationStrategy strategy)
Reads a sequence of objects using a specified serialization strategy.
|
static <T> T |
project(Class<T> tClass,
Object source)
Projects the source object's fields into a new instance of a specified class.
|
static void |
readMarshallable(Class<?> clazz,
@NotNull Object marshallable,
@NotNull WireIn wire,
boolean overwrite)
Reads a Marshallable object's fields from a WireIn instance using a specified class type.
|
static void |
readMarshallable(@NotNull Object marshallable,
@NotNull WireIn wire,
boolean overwrite)
Reads a Marshallable object's fields from a WireIn instance.
|
static long |
readWire(@NotNull WireIn wireIn,
long size,
@NotNull ReadMarshallable readMarshallable)
Reads data from a WireIn up to a specified size using a ReadMarshallable instance.
|
static <T> T |
recordAsYaml(Class<T> tClass,
PrintStream ps)
Creates and returns a proxy of the specified interface.
|
static int |
removeMaskedTidFromHeader(int header)
Removes masked thread ID from a given header.
|
static void |
replay(String file,
Object obj)
Reads the content of a specified Yaml file and replays the serialized method calls
to the specified object.
|
static void |
reset(@NotNull Object o)
Resets the specified object's state to its default.
|
static void |
setField(@NotNull Object o,
String name,
Object value)
Sets the value of a specific field in an object.
|
static void |
setLongField(@NotNull Object o,
String name,
long value)
Sets the long value of a specific field in an object.
|
static int |
toIntU30(long l,
@NotNull String error)
Converts a long value to an int, ensuring it falls within the 30-bit range.
|
static <T> T |
tupleFor(Class<T> tClass,
String typeName)
Returns a tuple for the specified class and type name.
|
static String |
typeNameFor(net.openhft.chronicle.core.pool.ClassLookup classLookup,
@NotNull Object value)
Fetches the type name for the provided object using the specified class lookup mechanism.
|
static String |
typeNameFor(@NotNull Object value)
Fetches the type name for the provided object using a default class alias pool.
|
static Wires |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Wires[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T extends WriteMarshallable> |
writeData(@NotNull WireOut wireOut,
T writer)
Writes data to the given WireOut using the provided writer.
|
static void |
writeKey(@NotNull Object marshallable,
net.openhft.chronicle.bytes.Bytes<?> bytes)
Writes the key associated with the marshallable object to the provided bytes.
|
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire)
Writes a marshallable object's fields to a WireOut instance.
|
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire,
boolean writeDefault)
Writes a marshallable object's fields to a WireOut instance with an option to use defaults.
|
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire,
@NotNull Object previous,
boolean copy)
Writes a marshallable object's fields to a WireOut instance considering previous state.
|
public static final int LENGTH_MASK
public static final int NOT_COMPLETE
public static final int META_DATA
public static final int UNKNOWN_LENGTH
public static final int NOT_COMPLETE_UNKNOWN_LENGTH
public static final int END_OF_DATA
public static final int NOT_INITIALIZED
public static final net.openhft.chronicle.bytes.Bytes<?> NO_BYTES
public static final int SPB_HEADER_SIZE
public static final List<Function<Class<?>,SerializationStrategy>> CLASS_STRATEGY_FUNCTIONS
public static boolean GENERATE_TUPLES
public static Wires[] values()
for (Wires c : Wires.values()) System.out.println(c);
public static Wires valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void init()
public static <T> T recordAsYaml(Class<T> tClass, PrintStream ps)
T - the type of the specified interfacetClass - the specified interface class to create a proxy ofps - the PrintStream used to write serialized method calls into, in Yaml formatpublic static void replay(String file, Object obj) throws IOException, net.openhft.chronicle.core.io.InvalidMarshallableException
file - the name of the input Yaml file containing serialized method callsobj - the target object that the method calls will be replayed onIOException - is thrown if there's an error reading the filenet.openhft.chronicle.core.io.InvalidMarshallableException - is thrown if the serialized data is invalid or corruptedpublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
bytes - to decodepublic static String fromAlignedSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
bytes - the bytes representing aligned size-prefixed blobspublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, boolean abbrev)
bytes - the bytes representing size-prefixed blobsabbrev - if true, the output string will be abbreviatedpublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position)
bytes - the bytes representing size-prefixed blobsposition - the position in bytes from which the conversion startspublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position, boolean padding)
bytes - the bytes representing size-prefixed blobsposition - the position in bytes from which the conversion startspadding - if true, the output string will have paddingpublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, boolean padding, boolean abbrev)
bytes - the bytes representing size-prefixed blobspadding - if true, the output string will have paddingabbrev - if true, the output string will be abbreviatedpublic static String fromSizePrefixedBlobs(@NotNull @NotNull DocumentContext dc)
DocumentContext
which represent size-prefixed blobs into a readable string format.
The method supports handling of both TextWire and BinaryWire types.dc - the DocumentContext holding the wire datapublic static String fromSizePrefixedBlobs(@NotNull @NotNull WireIn wireIn)
WireIn
which represent size-prefixed blobs into a readable string format.wireIn - the WireIn instance holding the wire datapublic static String fromSizePrefixedBlobs(@NotNull @NotNull WireIn wireIn, boolean abbrev)
WireIn
which represent size-prefixed blobs into a readable string format,
with the option to abbreviate the output.wireIn - the WireIn instance holding the wire dataabbrev - if true, the output string will be abbreviated@NotNull public static @NotNull CharSequence asText(@NotNull @NotNull WireIn wireIn, net.openhft.chronicle.bytes.Bytes<?> output)
public static net.openhft.chronicle.bytes.Bytes<?> asBinary(@NotNull
@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static net.openhft.chronicle.bytes.Bytes<?> asJson(@NotNull
@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static net.openhft.chronicle.core.scoped.ScopedResource<StringBuilder> acquireStringBuilderScoped()
public static int lengthOf(int len)
len - the encoded lengthpublic static boolean isReady(int header)
header - the input headerpublic static boolean isNotComplete(int header)
header - the input headerpublic static boolean isReadyData(int header)
header - the input headerpublic static boolean isData(int len)
len - the encoded lengthpublic static boolean isReadyMetaData(int len)
len - the encoded lengthpublic static boolean isKnownLength(int len)
len - the encoded lengthpublic static boolean isNotInitialized(int len)
len - the encoded lengthpublic static int toIntU30(long l,
@NotNull
@NotNull String error)
l - the input long valueerror - the error message template in case of an out-of-range valueIllegalStateException - if the value is out of the 30-bit rangepublic static boolean acquireLock(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore<?,?> store,
long position)
store - the byte store to lockposition - the position at which to lockpublic static boolean exceedsMaxLength(long length)
length - the length to checkpublic static <T extends WriteMarshallable> long writeData(@NotNull @NotNull WireOut wireOut, @NotNull T writer) throws net.openhft.chronicle.core.io.InvalidMarshallableException
wireOut - the destination to write datawriter - the WriteMarshallable instance to write datanet.openhft.chronicle.core.io.InvalidMarshallableException - if marshalling failspublic static long readWire(@NotNull
@NotNull WireIn wireIn,
long size,
@NotNull
@NotNull ReadMarshallable readMarshallable)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
wireIn - the source from which data is readsize - the maximum size of data to be readreadMarshallable - the ReadMarshallable instance to interpret the datanet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an issue during marshalling@NotNull public static @NotNull net.openhft.chronicle.core.scoped.ScopedResource<net.openhft.chronicle.bytes.Bytes<Void>> acquireBytesScoped()
public static net.openhft.chronicle.core.scoped.ScopedResource<Wire> acquireBinaryWireScoped()
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position, long length)
bytes - the source of the blob dataposition - the starting position for extractionlength - the length of data to extractpublic static void readMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireIn wire,
boolean overwrite)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
marshallable - the object whose fields need to be populatedwire - the source from which data will be readoverwrite - a flag indicating whether existing fields should be overwrittennet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an issue during the marshalling processpublic static void readMarshallable(Class<?> clazz, @NotNull @NotNull Object marshallable, @NotNull @NotNull WireIn wire, boolean overwrite) throws net.openhft.chronicle.core.io.InvalidMarshallableException
clazz - the class type of the Marshallable objectmarshallable - the object whose fields need to be populatedwire - the source from which data will be readoverwrite - a flag indicating whether existing fields should be overwrittennet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an issue during the marshalling processpublic static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
marshallable - the object whose fields are to be writtenwire - the target WireOut to write data tonet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an error during the marshalling processpublic static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire,
boolean writeDefault)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
marshallable - the object to be writtenwire - the target WireOut to write data towriteDefault - indicates if default values should be writtennet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an error during the marshalling processpublic static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire,
@NotNull
@NotNull Object previous,
boolean copy)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
marshallable - the object to be writtenwire - the target WireOut to write data toprevious - the previous state of the marshallable objectcopy - indicates if the previous state should be copiednet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an error during the marshalling processpublic static void writeKey(@NotNull
@NotNull Object marshallable,
net.openhft.chronicle.bytes.Bytes<?> bytes)
marshallable - the object whose key needs to be writtenbytes - the target bytes to write the key to@NotNull public static <T extends Marshallable> T deepCopy(@NotNull T marshallable) throws net.openhft.chronicle.core.io.InvalidMarshallableException
T - the type of marshallable objectmarshallable - the object to be deeply copiednet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an error during the copy process@NotNull public static <T> T copyTo(Object source, @NotNull T target) throws net.openhft.chronicle.core.io.InvalidMarshallableException
T - target typesource - sourcetarget - destnet.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public static <T> T project(Class<T> tClass, Object source) throws net.openhft.chronicle.core.io.InvalidMarshallableException
T - Type of the target classtClass - The target class type to project tosource - The source objectnet.openhft.chronicle.core.io.InvalidMarshallableException - if there's an error during the projection processpublic static boolean isEquals(@NotNull
@NotNull Object o1,
@NotNull
@NotNull Object o2)
o1 - First objecto2 - Second object@NotNull public static @NotNull List<FieldInfo> fieldInfos(@NotNull @NotNull Class<?> aClass)
aClass - Class to retrieve field information for@NotNull public static @NotNull Map<String,FieldInfo> fieldInfoMap(@NotNull @NotNull Class<?> aClass)
aClass - Class to retrieve field information forpublic static FieldInfo fieldInfo(@NotNull @NotNull Class<?> aClass, String name)
aClass - Class to which the field belongsname - Field namepublic static boolean isEndOfFile(int num)
num - Integer to check@Nullable
public static <T> T getField(@NotNull
@NotNull Object o,
String name,
Class<T> tClass)
throws NoSuchFieldException
T - Type parameter representing the desired typeo - Object to retrieve the field value fromname - Field nametClass - Desired type to convert the field value toNoSuchFieldException - if the field doesn't existpublic static long getLongField(@NotNull
@NotNull Object o,
String name)
throws NoSuchFieldException
o - Object to retrieve the field value fromname - Field nameNoSuchFieldException - if the specified field doesn't existpublic static void setField(@NotNull
@NotNull Object o,
String name,
Object value)
throws NoSuchFieldException
o - Object in which the field value will be setname - Field namevalue - New value to setNoSuchFieldException - if the specified field doesn't existpublic static void setLongField(@NotNull
@NotNull Object o,
String name,
long value)
throws NoSuchFieldException
o - Object in which the field value will be setname - Field namevalue - New long value to setNoSuchFieldException - if the specified field doesn't existpublic static void reset(@NotNull
@NotNull Object o)
o - Object to be resetpublic static int removeMaskedTidFromHeader(int header)
header - The header with a potentially masked thread ID@Nullable public static <E> E objectSequence(ValueIn in, @Nullable E using, @Nullable @Nullable Class<? extends E> clazz, SerializationStrategy strategy)
E - Type parameter of the object sequencein - ValueIn instance providing the input datausing - Optional object to read the data into (can be null)clazz - Class type of the object sequence, can be null for generic Objectstrategy - Serialization strategy to use for reading the sequence@Nullable public static <E> E objectMap(ValueIn in, @Nullable E using, @Nullable @Nullable Class<? extends E> clazz, @NotNull @NotNull SerializationStrategy strategy) throws net.openhft.chronicle.core.io.InvalidMarshallableException
E - Type parameter of the object mapin - ValueIn instance providing the input datausing - Optional object to read the data into (can be null)clazz - Class type of the object map, can be null for generic Objectstrategy - Serialization strategy to use for reading the mapnet.openhft.chronicle.core.io.InvalidMarshallableException - If the deserialization process encounters an error@NotNull public static <E> E objectDate(ValueIn in, @Nullable E using)
E - Expected type (often Date) to be returnedin - ValueIn instance providing the input datausing - Optional Date object to read the data into (can be null)@Nullable public static <E> E object0(ValueIn in, @Nullable E using, @Nullable @Nullable Class<? extends E> clazz) throws net.openhft.chronicle.core.io.InvalidMarshallableException
E - Type parameter of the objectin - ValueIn instance providing the input datausing - Optional object to read the data into (can be null)clazz - Class type of the object, can be null for generic Objectnet.openhft.chronicle.core.io.InvalidMarshallableException - If the deserialization process encounters an errorpublic static <E> E object0(ValueIn in, @Nullable E using, @Nullable @Nullable Class<? extends E> clazz, boolean bestEffort) throws net.openhft.chronicle.core.io.InvalidMarshallableException
E - The type of the object being deserialized.in - The input source to read the serialized data from.using - An optional object to populate with the deserialized data. Can be null.clazz - The expected class type of the deserialized object. Can be null.bestEffort - Flag to determine the effort in deserialization. If false, exceptions may be thrown for mismatches.net.openhft.chronicle.core.io.InvalidMarshallableException - If an error occurs during deserialization.public static <E> E object1(ValueIn in, @Nullable E using, @Nullable @Nullable Class<? extends E> clazz, boolean bestEffort) throws net.openhft.chronicle.core.io.InvalidMarshallableException
E - The type of the object being deserialized.in - The input source to read the serialized data from.using - An optional object to populate with the deserialized data. Can be null.clazz - The expected class type of the deserialized object. Can be null.bestEffort - Flag to determine the effort in deserialization. If false, exceptions may be thrown for mismatches.net.openhft.chronicle.core.io.InvalidMarshallableException - If an error occurs during deserialization.public static boolean dtoInterface(Class<?> clazz)
clazz - The class to check.public static String typeNameFor(@NotNull @NotNull Object value)
value - The object whose type name is to be fetched.public static String typeNameFor(net.openhft.chronicle.core.pool.ClassLookup classLookup, @NotNull @NotNull Object value)
classLookup - The class lookup mechanism to use.value - The object whose type name is to be fetched.@Nullable public static <T> T tupleFor(Class<T> tClass, String typeName)
T - The type parameter.tClass - The class type for which the tuple is required.typeName - The type name.public static boolean isInternal(@NotNull
@NotNull Object value)
value - The object to check.@NotNull public static @NotNull BinaryWire binaryWireForRead(net.openhft.chronicle.bytes.Bytes<?> in, long position, long length)
in - The input bytes.position - The starting position.length - The length of data to read.@NotNull public static @NotNull BinaryWire binaryWireForWrite(net.openhft.chronicle.bytes.Bytes<?> in, long position, long length)
in - The input bytes.position - The starting position.length - The length of data to write.Copyright © 2024. All rights reserved.