public class MethodWireKey extends BytesInBinaryMarshallable implements WireKey
MethodWireKey class represents a key within a wire format, extending the
BytesInBinaryMarshallable class and implementing the WireKey interface.
Each instance of MethodWireKey has a unique name and code combination. The name,
if not provided, defaults to the string representation of the code.
This class can be particularly useful in scenarios where wire keys are required to be identified both by a textual name and a numeric code.
EMPTYDISCARD| Constructor and Description |
|---|
MethodWireKey(String name,
int code)
Constructs a new
MethodWireKey with the provided name and code. |
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Calculates the code of the WireKey based on its name.
|
boolean |
equals(Object o) |
int |
hashCode() |
@NotNull String |
name()
Retrieves the name of the WireKey.
|
String |
toString() |
usesSelfDescribingMessageclone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckKeys, contentEquals, defaultValue, toCode, type$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic MethodWireKey(String name, int code)
MethodWireKey with the provided name and code.name - The name of the wire key.code - The numeric code representing the wire key.@NotNull public @NotNull String name()
WireKeypublic int code()
WireKeyWireKey.toCode(CharSequence) method.Copyright © 2024. All rights reserved.