Package dev.tripswitch.admin
Record Class ListEventsResponse
java.lang.Object
java.lang.Record
dev.tripswitch.admin.ListEventsResponse
public record ListEventsResponse(List<Event> events, int returned, String nextCursor)
extends Record
Response from listing events.
-
Constructor Summary
ConstructorsConstructorDescriptionListEventsResponse(List<Event> events, int returned, String nextCursor) Creates an instance of aListEventsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenextCursorrecord component.intreturned()Returns the value of thereturnedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListEventsResponse
Creates an instance of aListEventsResponserecord class.- Parameters:
events- the value for theeventsrecord componentreturned- the value for thereturnedrecord componentnextCursor- the value for thenextCursorrecord 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 '=='. -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
returned
public int returned()Returns the value of thereturnedrecord component.- Returns:
- the value of the
returnedrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-