Record Class QuestionListEntry<T>
java.lang.Object
java.lang.Record
eu.cloudnetservice.node.impl.console.animation.setup.answer.QuestionListEntry<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull QuestionAnswerType<T> The field for theanswerTyperecord component.The field for thekeyrecord component.The field for thequestionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionQuestionListEntry(@NonNull String key, @NonNull Supplier<String> question, @NonNull QuestionAnswerType<T> answerType) Creates an instance of aQuestionListEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanswerTyperecord component.static <T> @NonNull QuestionListEntry.Builder<T> builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.question()Returns the value of thequestionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
key
-
question
-
answerType
The field for theanswerTyperecord component.
-
-
Constructor Details
-
QuestionListEntry
public QuestionListEntry(@NonNull @NonNull String key, @NonNull @NonNull Supplier<String> question, @NonNull @NonNull QuestionAnswerType<T> answerType) Creates an instance of aQuestionListEntryrecord class.- Parameters:
key- the value for thekeyrecord componentquestion- the value for thequestionrecord componentanswerType- the value for theanswerTyperecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
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). -
key
-
question
-
answerType
Returns the value of theanswerTyperecord component.- Returns:
- the value of the
answerTyperecord component
-