Package tschipp.carryon.config
Record Class AnnotationData
java.lang.Object
java.lang.Record
tschipp.carryon.config.AnnotationData
public record AnnotationData(PropertyType type, String description, int min, int max, double minD, double maxD)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationData(PropertyType type, String description, int min, int max, double minD, double maxD) Creates an instance of aAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static AnnotationDatafinal inthashCode()Returns a hash code value for this object.intmax()Returns the value of themaxrecord component.doublemaxD()Returns the value of themaxDrecord component.intmin()Returns the value of theminrecord component.doubleminD()Returns the value of theminDrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AnnotationData
public AnnotationData(PropertyType type, String description, int min, int max, double minD, double maxD) Creates an instance of aAnnotationDatarecord class.- Parameters:
type- the value for thetyperecord componentdescription- the value for thedescriptionrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componentminD- the value for theminDrecord componentmaxD- the value for themaxDrecord component
-
-
Method Details
-
getData
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
min
public int min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public int max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
minD
public double minD()Returns the value of theminDrecord component.- Returns:
- the value of the
minDrecord component
-
maxD
public double maxD()Returns the value of themaxDrecord component.- Returns:
- the value of the
maxDrecord component
-