Record Class Period
java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.Period
- Record Components:
from- inclusive start, ornullfor no lower boundtoExclusive- exclusive end, ornullfor no upper bound
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public record Period(Instant from, Instant toExclusive)
extends Record
The time range of a page query (security-10 S-03): only records inside it count toward the
query's record cap. Lines outside it are recognised from their raw timestamp and skipped
without being parsed; reading stops at the first line appended before
from.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetoExclusiverecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ALL
No bounds: every record counts toward the cap.
-
-
Constructor Details
-
Period
Creates an instance of aPeriodrecord class.- Parameters:
from- the value for thefromrecord componenttoExclusive- the value for thetoExclusiverecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
toExclusive
Returns the value of thetoExclusiverecord component.- Returns:
- the value of the
toExclusiverecord component
-