Record Class PaginatedEnvironmentsForDashboard
java.lang.Object
java.lang.Record
com.atlassian.bamboo.deployments.environments.PaginatedEnvironmentsForDashboard
@Internal
public record PaginatedEnvironmentsForDashboard(List<Environment> environments, boolean hasMore, int nextStart)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPaginatedEnvironmentsForDashboard
(List<Environment> environments, boolean hasMore, int nextStart) Creates an instance of aPaginatedEnvironmentsForDashboard
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironments
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hasMore()
Returns the value of thehasMore
record component.int
Returns the value of thenextStart
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
PaginatedEnvironmentsForDashboard
public PaginatedEnvironmentsForDashboard(List<Environment> environments, boolean hasMore, int nextStart) Creates an instance of aPaginatedEnvironmentsForDashboard
record class.- Parameters:
environments
- the value for theenvironments
record componenthasMore
- the value for thehasMore
record componentnextStart
- the value for thenextStart
record 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 '=='. -
environments
Returns the value of theenvironments
record component.- Returns:
- the value of the
environments
record component
-
hasMore
public boolean hasMore()Returns the value of thehasMore
record component.- Returns:
- the value of the
hasMore
record component
-
nextStart
public int nextStart()Returns the value of thenextStart
record component.- Returns:
- the value of the
nextStart
record component
-