Package dev.tripswitch.admin
Record Class ListBreakersResponse
java.lang.Object
java.lang.Record
dev.tripswitch.admin.ListBreakersResponse
public record ListBreakersResponse(List<Breaker> breakers, int count, String hash, String updatedAt, String nextCursor)
extends Record
Response from listing breakers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreakers()Returns the value of thebreakersrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenextCursorrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
ListBreakersResponse
public ListBreakersResponse(List<Breaker> breakers, int count, String hash, String updatedAt, String nextCursor) Creates an instance of aListBreakersResponserecord class.- Parameters:
breakers- the value for thebreakersrecord componentcount- the value for thecountrecord componenthash- the value for thehashrecord componentupdatedAt- the value for theupdatedAtrecord 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 '=='. -
breakers
Returns the value of thebreakersrecord component.- Returns:
- the value of the
breakersrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-