Record Class ChildAssocsSlice
java.lang.Object
java.lang.Record
org.alfresco.service.cmr.repository.ChildAssocsSlice
- Record Components:
childAssocs- an unmodifiable list ofChildAssociationRefrepresenting the child associationstotalCount- the total number of child associations for the parent node, regardless of paging
- All Implemented Interfaces:
Serializable
@AlfrescoPublicApi
public record ChildAssocsSlice(List<ChildAssociationRef> childAssocs, int totalCount)
extends Record
implements Serializable
Immutable record that encapsulates a list of child associations and the total count of child associations for a given parent node. This is typically used to return both the current page of child associations and the total number available, supporting pagination scenarios.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChildAssocsSlice(List<ChildAssociationRef> childAssocs, int totalCount) Creates an instance of aChildAssocsSlicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechildAssocsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ChildAssocsSlice
Creates an instance of aChildAssocsSlicerecord class.- Parameters:
childAssocs- the value for thechildAssocsrecord componenttotalCount- the value for thetotalCountrecord 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 '=='. -
childAssocs
Returns the value of thechildAssocsrecord component.- Returns:
- the value of the
childAssocsrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-