Record Class MemberInfo
java.lang.Object
java.lang.Record
uno.anahata.ai.nb.model.java.MemberInfo
- Record Components:
name- The name of the member.kind- The kind of member (e.g., "METHOD", "FIELD", "CONSTRUCTOR").type- The return type for a method or the type of a field.modifiers- The set of modifiers (e.g., "public", "static", "final").parameters- A list of parameter types for a method or constructor.
-
Constructor Summary
Constructors -
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.kind()Returns the value of thekindrecord component.Returns the value of themodifiersrecord component.name()Returns the value of thenamerecord component.Returns the value of theparametersrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
MemberInfo
public MemberInfo(String name, String kind, String type, Set<String> modifiers, List<String> parameters) Creates an instance of aMemberInforecord class.- Parameters:
name- the value for thenamerecord componentkind- the value for thekindrecord componenttype- the value for thetyperecord componentmodifiers- the value for themodifiersrecord componentparameters- the value for theparametersrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
kind
-
type
-
modifiers
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
