Package me.ehp246.aufjms.api.inbound
Record Class InvocableType
java.lang.Object
java.lang.Record
me.ehp246.aufjms.api.inbound.InvocableType
public record InvocableType(Class<?> instanceType, Method method, InstanceScope scope, InvocationModel model)
extends Record
- Author:
- Lei Yang
-
Constructor Summary
ConstructorsConstructorDescriptionInvocableType(Class<?> instanceType, Method method, InstanceScope scope, InvocationModel model) Creates an instance of aInvocableTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?>Returns the value of theinstanceTyperecord component.method()Returns the value of themethodrecord component.model()Returns the value of themodelrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InvocableType
public InvocableType(Class<?> instanceType, Method method, InstanceScope scope, InvocationModel model) Creates an instance of aInvocableTyperecord class.- Parameters:
instanceType- the value for theinstanceTyperecord componentmethod- the value for themethodrecord componentscope- the value for thescoperecord componentmodel- the value for themodelrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
instanceType
Returns the value of theinstanceTyperecord component.- Returns:
- the value of the
instanceTyperecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-