Record Class AnnotationData
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.type.AnnotationData
- Record Components:
type- The Annotation class these values belong to.values- Contains a map ofStringto annotation field value.A value may be one of
Byte,Boolean,Character,Short,Integer,Long,Float,Double,String,Boolean,ClassType,Fieldfor enum constants,AnnotationDatafor another annotation, or aListof one of the prior mentioned types, boxed.
Created by covers1624 on 12/9/22.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationData(ClassType type, Map<String, Object> values) Creates an instance of aAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()booleanfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
Method Details
-
isEmpty
public boolean isEmpty() -
isSingleElement
public boolean isSingleElement() -
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). -
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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-