Module ch.rasc.jcentserverclient
Package ch.rasc.jcentserverclient.models
Record Class HistoryRequest
java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.HistoryRequest
public record HistoryRequest(String channel, Integer limit, StreamPosition since, Boolean reverse)
extends Record
Request for getting channel history.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHistoryRequest(String channel, Integer limit, StreamPosition since, Boolean reverse) Creates an instance of aHistoryRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic HistoryRequest.Builderbuilder()channel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.reverse()Returns the value of thereverserecord component.since()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoryRequest
Creates an instance of aHistoryRequestrecord class.- Parameters:
channel- the value for thechannelrecord componentlimit- the value for thelimitrecord componentsince- the value for thesincerecord componentreverse- the value for thereverserecord component
-
-
Method Details
-
builder
-
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). -
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
since
Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-
reverse
Returns the value of thereverserecord component.- Returns:
- the value of the
reverserecord component
-