Record Class FieldDocumentation
java.lang.Object
java.lang.Record
io.fluxzero.tools.jsondoclet.model.FieldDocumentation
public record FieldDocumentation(String name, String qualifiedName, String type, List<String> modifiers, List<AnnotationDocumentation> annotations, String documentation, Object constantValue)
extends Record
Documentation for a field declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldDocumentation(String name, String qualifiedName, String type, List<String> modifiers, List<AnnotationDocumentation> annotations, String documentation, Object constantValue) Creates an instance of aFieldDocumentationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.Returns the value of theconstantValuerecord component.Returns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodifiersrecord component.name()Returns the value of thenamerecord component.Returns the value of thequalifiedNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
FieldDocumentation
public FieldDocumentation(String name, String qualifiedName, String type, List<String> modifiers, List<AnnotationDocumentation> annotations, String documentation, Object constantValue) Creates an instance of aFieldDocumentationrecord class.- Parameters:
name- the value for thenamerecord componentqualifiedName- the value for thequalifiedNamerecord componenttype- the value for thetyperecord componentmodifiers- the value for themodifiersrecord componentannotations- the value for theannotationsrecord componentdocumentation- the value for thedocumentationrecord componentconstantValue- the value for theconstantValuerecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
qualifiedName
Returns the value of thequalifiedNamerecord component.- Returns:
- the value of the
qualifiedNamerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-
constantValue
Returns the value of theconstantValuerecord component.- Returns:
- the value of the
constantValuerecord component
-