Record Class ProcessManagementService.PageResult<T>
java.lang.Object
java.lang.Record
org.chenile.orchestrator.process.configuration.management.ProcessManagementService.PageResult<T>
- Enclosing class:
ProcessManagementService
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecontentrecord component.private final intThe field for thepagerecord component.private final intThe field for thesizerecord component.private final longThe field for thetotalElementsrecord component.private final intThe field for thetotalPagesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPageResult(List<T> content, long totalElements, int page, int size, int totalPages) Creates an instance of aPageResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) static <T> ProcessManagementService.PageResult<T> of(org.springframework.data.domain.Page<T> p) intpage()Returns the value of thepagerecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalElementsrecord component.intReturns the value of thetotalPagesrecord component.
-
Field Details
-
-
totalElements
private final long totalElementsThe field for thetotalElementsrecord component. -
page
private final int pageThe field for thepagerecord component. -
size
private final int sizeThe field for thesizerecord component. -
totalPages
private final int totalPagesThe field for thetotalPagesrecord component.
-
-
Constructor Details
-
PageResult
Creates an instance of aPageResultrecord class.- Parameters:
content- the value for thecontentrecord componenttotalElements- the value for thetotalElementsrecord componentpage- the value for thepagerecord componentsize- the value for thesizerecord componenttotalPages- the value for thetotalPagesrecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
content
-
totalElements
public long totalElements()Returns the value of thetotalElementsrecord component.- Returns:
- the value of the
totalElementsrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
totalPages
public int totalPages()Returns the value of thetotalPagesrecord component.- Returns:
- the value of the
totalPagesrecord component
-
CHENILE