Record Class DefaultRPCMethodMetadata.MethodChainMetadata
java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.impl.network.rpc.introspec.DefaultRPCMethodMetadata.MethodChainMetadata
- Record Components:
generationFlags- the flags to pass when generating the class implementation.parameterMappings- the index mapping of method parameter to constructor parameter index.baseImplementationType- the base implementation type for the generation of the method.
- Enclosing class:
DefaultRPCMethodMetadata
public static record DefaultRPCMethodMetadata.MethodChainMetadata(int generationFlags, int[] parameterMappings, @Nullable Class<?> baseImplementationType)
extends Record
Metadata information for a chained invocation. Only present if the target method is annotated with
RPCChained. Note that the parameter mapping target constructor indexes are not validated.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebaseImplementationTyperecord component.private final intThe field for thegenerationFlagsrecord component.private final int[]The field for theparameterMappingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMethodChainMetadata(int generationFlags, int[] parameterMappings, @Nullable Class<?> baseImplementationType) Creates an instance of aMethodChainMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseImplementationTyperecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegenerationFlagsrecord component.final inthashCode()Returns a hash code value for this object.int[]Returns the value of theparameterMappingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
generationFlags
private final int generationFlagsThe field for thegenerationFlagsrecord component. -
parameterMappings
private final int[] parameterMappingsThe field for theparameterMappingsrecord component. -
baseImplementationType
The field for thebaseImplementationTyperecord component.
-
-
Constructor Details
-
MethodChainMetadata
public MethodChainMetadata(int generationFlags, int[] parameterMappings, @Nullable @Nullable Class<?> baseImplementationType) Creates an instance of aMethodChainMetadatarecord class.- Parameters:
generationFlags- the value for thegenerationFlagsrecord componentparameterMappings- the value for theparameterMappingsrecord componentbaseImplementationType- the value for thebaseImplementationTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
generationFlags
public int generationFlags()Returns the value of thegenerationFlagsrecord component.- Returns:
- the value of the
generationFlagsrecord component
-
parameterMappings
public int[] parameterMappings()Returns the value of theparameterMappingsrecord component.- Returns:
- the value of the
parameterMappingsrecord component
-
baseImplementationType
Returns the value of thebaseImplementationTyperecord component.- Returns:
- the value of the
baseImplementationTyperecord component
-