Record Class RetentionResult
java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.RetentionResult
- Record Components:
runRequests- closed run requests deletedgrantRequests- closed grant requests deletedgrantIds- ids of the ended grants deletedactivationRequests- closed activation requests deleted
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public record RetentionResult(int runRequests, int grantRequests, List<String> grantIds, int activationRequests)
extends Record
What one retention pass over the XML entities deleted.
-
Constructor Summary
ConstructorsConstructorDescriptionRetentionResult(int runRequests, int grantRequests, List<String> grantIds) The form without activation requests.RetentionResult(int runRequests, int grantRequests, List<String> grantIds, int activationRequests) Creates an instance of aRetentionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactivationRequestsrecord component.final booleanIndicates whether some other object is "equal to" this one.grantIds()Returns the value of thegrantIdsrecord component.intReturns the value of thegrantRequestsrecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Whether anything was deleted.intReturns the value of therunRequestsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RetentionResult
public RetentionResult(int runRequests, int grantRequests, List<String> grantIds, int activationRequests) Creates an instance of aRetentionResultrecord class.- Parameters:
runRequests- the value for therunRequestsrecord componentgrantRequests- the value for thegrantRequestsrecord componentgrantIds- the value for thegrantIdsrecord componentactivationRequests- the value for theactivationRequestsrecord component
-
RetentionResult
The form without activation requests.
-
-
Method Details
-
isEmpty
public boolean isEmpty()Whether anything was deleted. -
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 '=='. -
runRequests
public int runRequests()Returns the value of therunRequestsrecord component.- Returns:
- the value of the
runRequestsrecord component
-
grantRequests
public int grantRequests()Returns the value of thegrantRequestsrecord component.- Returns:
- the value of the
grantRequestsrecord component
-
grantIds
Returns the value of thegrantIdsrecord component.- Returns:
- the value of the
grantIdsrecord component
-
activationRequests
public int activationRequests()Returns the value of theactivationRequestsrecord component.- Returns:
- the value of the
activationRequestsrecord component
-