Record Class RetentionResult

java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.RetentionResult
Record Components:
runRequests - closed run requests deleted
grantRequests - closed grant requests deleted
grantIds - ids of the ended grants deleted
activationRequests - 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 Details

    • RetentionResult

      public RetentionResult(int runRequests, int grantRequests, List<String> grantIds, int activationRequests)
      Creates an instance of a RetentionResult record class.
      Parameters:
      runRequests - the value for the runRequests record component
      grantRequests - the value for the grantRequests record component
      grantIds - the value for the grantIds record component
      activationRequests - the value for the activationRequests record component
    • RetentionResult

      public RetentionResult(int runRequests, int grantRequests, List<String> grantIds)
      The form without activation requests.
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Whether anything was deleted.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • runRequests

      public int runRequests()
      Returns the value of the runRequests record component.
      Returns:
      the value of the runRequests record component
    • grantRequests

      public int grantRequests()
      Returns the value of the grantRequests record component.
      Returns:
      the value of the grantRequests record component
    • grantIds

      public List<String> grantIds()
      Returns the value of the grantIds record component.
      Returns:
      the value of the grantIds record component
    • activationRequests

      public int activationRequests()
      Returns the value of the activationRequests record component.
      Returns:
      the value of the activationRequests record component