Package io.avaje.validation.generator
Record Class ElementAnnotationContainer
java.lang.Object
java.lang.Record
io.avaje.validation.generator.ElementAnnotationContainer
public record ElementAnnotationContainer(io.avaje.validation.generator.GenericType genericType, boolean hasValid, Map<io.avaje.validation.generator.GenericType,String> annotations, Map<io.avaje.validation.generator.GenericType,String> typeUse1, Map<io.avaje.validation.generator.GenericType,String> typeUse2)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionElementAnnotationContainer(io.avaje.validation.generator.GenericType genericType, boolean hasValid, Map<io.avaje.validation.generator.GenericType, String> annotations, Map<io.avaje.validation.generator.GenericType, String> typeUse1, Map<io.avaje.validation.generator.GenericType, String> typeUse2) Creates an instance of aElementAnnotationContainerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImports(Set<String> importTypes) Returns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.io.avaje.validation.generator.GenericTypeReturns the value of thegenericTyperecord component.final inthashCode()Returns a hash code value for this object.booleanhasValid()Returns the value of thehasValidrecord component.final StringtoString()Returns a string representation of this record class.typeUse1()Returns the value of thetypeUse1record component.typeUse2()Returns the value of thetypeUse2record component.
-
Constructor Details
-
ElementAnnotationContainer
public ElementAnnotationContainer(io.avaje.validation.generator.GenericType genericType, boolean hasValid, Map<io.avaje.validation.generator.GenericType, String> annotations, Map<io.avaje.validation.generator.GenericType, String> typeUse1, Map<io.avaje.validation.generator.GenericType, String> typeUse2) Creates an instance of aElementAnnotationContainerrecord class.- Parameters:
genericType- the value for thegenericTyperecord componenthasValid- the value for thehasValidrecord componentannotations- the value for theannotationsrecord componenttypeUse1- the value for thetypeUse1record componenttypeUse2- the value for thetypeUse2record component
-
-
Method Details
-
addImports
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
genericType
public io.avaje.validation.generator.GenericType genericType()Returns the value of thegenericTyperecord component.- Returns:
- the value of the
genericTyperecord component
-
hasValid
public boolean hasValid()Returns the value of thehasValidrecord component.- Returns:
- the value of the
hasValidrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
typeUse1
Returns the value of thetypeUse1record component.- Returns:
- the value of the
typeUse1record component
-
typeUse2
Returns the value of thetypeUse2record component.- Returns:
- the value of the
typeUse2record component
-