Record Class NBTPoll
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.poll.model.NBTPoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswers()Returns the value of theanswersrecord component.floatendTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.booleanmultiple()Returns the value of themultiplerecord component.floatReturns the value of therepeatTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NBTPoll
public NBTPoll(String input, boolean multiple, float endTime, float repeatTime, List<String> answers) Creates an instance of aNBTPollrecord class.- Parameters:
input- the value for theinputrecord componentmultiple- the value for themultiplerecord componentendTime- the value for theendTimerecord componentrepeatTime- the value for therepeatTimerecord componentanswers- the value for theanswersrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
multiple
public boolean multiple()Returns the value of themultiplerecord component.- Returns:
- the value of the
multiplerecord component
-
endTime
public float endTime()Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
repeatTime
public float repeatTime()Returns the value of therepeatTimerecord component.- Returns:
- the value of the
repeatTimerecord component
-
answers
-