Package org.praxisplatform.uischema.dto
Record Class LocateResponse
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.dto.LocateResponse
- Record Components:
position- indice absoluto zero-based do registropage- pagina correspondente considerando o tamanho usado na consulta
Resposta canonica do endpoint de localizacao de registros.
Esse contrato informa em qual indice absoluto um registro aparece dentro de um conjunto filtrado e em qual pagina ele cairia para um determinado tamanho de pagina. Ele e especialmente util para grids que precisam navegar diretamente ate o item alvo.
-
Constructor Summary
ConstructorsConstructorDescriptionLocateResponse(long position, long page) Creates an instance of aLocateResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpage()Returns the value of thepagerecord component.longposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared with '=='. -
position
public long position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
page
public long page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-