Record Class EntityModelPage
java.lang.Object
java.lang.Record
com.priint.pubserverapi.entitymodel.EntityModelPage
- All Implemented Interfaces:
Serializable
public record EntityModelPage(String modelIdentifier, int totalCount, int offset, int limit, boolean hasMore, List<EntityDescription> entities)
extends Record
implements Serializable
A bounded page of the session model, ordered by stable entity identifier.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityModelPage(String modelIdentifier, int totalCount, int offset, int limit, boolean hasMore, List<EntityDescription> entities) Creates an instance of aEntityModelPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionentities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasMore()Returns the value of thehasMorerecord component.intlimit()Returns the value of thelimitrecord component.Returns the value of themodelIdentifierrecord component.intoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
EntityModelPage
public EntityModelPage(String modelIdentifier, int totalCount, int offset, int limit, boolean hasMore, List<EntityDescription> entities) Creates an instance of aEntityModelPagerecord class.- Parameters:
modelIdentifier- the value for themodelIdentifierrecord componenttotalCount- the value for thetotalCountrecord componentoffset- the value for theoffsetrecord componentlimit- the value for thelimitrecord componenthasMore- the value for thehasMorerecord componententities- the value for theentitiesrecord 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 '=='. -
modelIdentifier
Returns the value of themodelIdentifierrecord component.- Returns:
- the value of the
modelIdentifierrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-