Record Class StudySession.StudyConfigSpecV2
java.lang.Object
java.lang.Record
com.amalgamasimulation.studies.core.StudySession.StudyConfigSpecV2
- Enclosing class:
StudySession
public static record StudySession.StudyConfigSpecV2(String title, String subtitle, List<StudySession.FormField> fields, boolean allowAppendConfig, Map<String,Object> uiHints, List<StudySession.UiItem> layout, List<StudySession.UiValidator> validators)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStudyConfigSpecV2(String title, String subtitle, List<StudySession.FormField> fields, boolean allowAppendConfig, Map<String, Object> uiHints, List<StudySession.UiItem> layout, List<StudySession.UiValidator> validators) Creates an instance of aStudyConfigSpecV2record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowAppendConfigrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.layout()Returns the value of thelayoutrecord component.subtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.uiHints()Returns the value of theuiHintsrecord component.Returns the value of thevalidatorsrecord component.
-
Constructor Details
-
StudyConfigSpecV2
public StudyConfigSpecV2(String title, String subtitle, List<StudySession.FormField> fields, boolean allowAppendConfig, Map<String, Object> uiHints, List<StudySession.UiItem> layout, List<StudySession.UiValidator> validators) Creates an instance of aStudyConfigSpecV2record class.- Parameters:
title- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord componentfields- the value for thefieldsrecord componentallowAppendConfig- the value for theallowAppendConfigrecord componentuiHints- the value for theuiHintsrecord componentlayout- the value for thelayoutrecord componentvalidators- the value for thevalidatorsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
allowAppendConfig
public boolean allowAppendConfig()Returns the value of theallowAppendConfigrecord component.- Returns:
- the value of the
allowAppendConfigrecord component
-
uiHints
Returns the value of theuiHintsrecord component.- Returns:
- the value of the
uiHintsrecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-
validators
Returns the value of thevalidatorsrecord component.- Returns:
- the value of the
validatorsrecord component
-