Record Class ClassType.Annotations
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.type.ClassType.Annotations
- Enclosing class:
ClassType
public static record ClassType.Annotations(List<Annotation> classAnnotations, List<AnnotatedTypeParameter> typeParameters, AnnotatedType superType, List<AnnotatedType> interfaces)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotations(List<Annotation> classAnnotations, List<AnnotatedTypeParameter> typeParameters, AnnotatedType superType, List<AnnotatedType> interfaces) Creates an instance of aAnnotationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassAnnotationsrecord 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 theinterfacesrecord component.Returns the value of thesuperTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
Annotations
public Annotations(List<Annotation> classAnnotations, List<AnnotatedTypeParameter> typeParameters, AnnotatedType superType, List<AnnotatedType> interfaces) Creates an instance of aAnnotationsrecord class.- Parameters:
classAnnotations- the value for theclassAnnotationsrecord componenttypeParameters- the value for thetypeParametersrecord componentsuperType- the value for thesuperTyperecord componentinterfaces- the value for theinterfacesrecord 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). -
classAnnotations
Returns the value of theclassAnnotationsrecord component.- Returns:
- the value of the
classAnnotationsrecord component
-
typeParameters
Returns the value of thetypeParametersrecord component.- Returns:
- the value of the
typeParametersrecord component
-
superType
Returns the value of thesuperTyperecord component.- Returns:
- the value of the
superTyperecord component
-
interfaces
Returns the value of theinterfacesrecord component.- Returns:
- the value of the
interfacesrecord component
-