Package jenkins.model
Record Class PeepholePermalink.Cache.Some
java.lang.Object
java.lang.Record
jenkins.model.PeepholePermalink.Cache.Some
- All Implemented Interfaces:
Serializable
,PeepholePermalink.Cache.Known
,PeepholePermalink.Cache.PermalinkTarget
- Enclosing interface:
- PeepholePermalink.Cache
public static record PeepholePermalink.Cache.Some(int number)
extends Record
implements PeepholePermalink.Cache.Known
A matching build, indicated by
Run.getNumber()
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
number()
Returns the value of thenumber
record component.Run<?,
?> resolve
(PeepholePermalink pp, Job<?, ?> job, String id) Implementation ofPeepholePermalink.resolve(Job)
.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jenkins.model.PeepholePermalink.Cache.PermalinkTarget
search
-
Constructor Details
-
Some
public Some(int number) Creates an instance of aSome
record class.- Parameters:
number
- the value for thenumber
record component
-
-
Method Details
-
resolve
Description copied from interface:PeepholePermalink.Cache.PermalinkTarget
Implementation ofPeepholePermalink.resolve(Job)
. This may update the cache if it was missing or found to be invalid.- Specified by:
resolve
in interfacePeepholePermalink.Cache.PermalinkTarget
-
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 with '=='. -
number
public int number()Returns the value of thenumber
record component.- Returns:
- the value of the
number
record component
-