Package tschipp.carryon.config
Record Class PropertyData
java.lang.Object
java.lang.Record
tschipp.carryon.config.PropertyData
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyData(Object fieldClass, Field field, AnnotationData data) Creates an instance of aPropertyDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.Returns the value of thefieldClassrecord component.booleandoublegetId()intgetInt()String[]final inthashCode()Returns a hash code value for this object.voidsetBoolean(boolean _boolean) voidsetDouble(double _double) voidsetInt(int _int) voidsetStringArray(String[] arr) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PropertyData
Creates an instance of aPropertyDatarecord class.- Parameters:
fieldClass- the value for thefieldClassrecord componentfield- the value for thefieldrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
getId
-
getBoolean
- Throws:
IllegalAccessException
-
setBoolean
public void setBoolean(boolean _boolean) -
getInt
- Throws:
IllegalAccessException
-
setInt
public void setInt(int _int) -
getDouble
- Throws:
IllegalAccessException
-
setDouble
public void setDouble(double _double) -
getStringArray
- Throws:
IllegalAccessException
-
setStringArray
-
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). -
fieldClass
Returns the value of thefieldClassrecord component.- Returns:
- the value of the
fieldClassrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-