Package hudson.model
Class Fingerprint.Range
java.lang.Object
hudson.model.Fingerprint.Range
- Enclosing class:
Fingerprint
Range of build numbers [start,end). Immutable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombine(Fingerprint.Range that) Returns theFingerprint.Rangethat combines two ranges.booleancontains(Fingerprint.Range that) If this range contains every int that's in the other range, return truebooleanintgetEnd()intgetStart()inthashCode()booleanincludes(int i) intersect(Fingerprint.Range that) Returns theFingerprint.Rangethat represents the intersection of the two.booleanbooleanisBiggerThan(int i) booleanisDisjoint(Fingerprint.Range that) Returns true if twoFingerprint.Ranges do not share any common integer.booleanReturns true if twoFingerprint.Ranges can't be combined into a single range.booleanisSingle()Returns true if this range only represents a single number.booleanisSmallerThan(int i) toString()
-
Constructor Details
-
Range
public Range(int start, int end)
-
-
Method Details
-
getStart
@Exported public int getStart() -
getEnd
@Exported public int getEnd() -
isSmallerThan
public boolean isSmallerThan(int i) -
isBiggerThan
public boolean isBiggerThan(int i) -
includes
public boolean includes(int i) -
expandRight
-
expandLeft
-
isAdjacentTo
-
toString
-
isIndependent
Returns true if twoFingerprint.Ranges can't be combined into a single range. -
isDisjoint
Returns true if twoFingerprint.Ranges do not share any common integer. -
isSingle
public boolean isSingle()Returns true if this range only represents a single number. -
contains
If this range contains every int that's in the other range, return true -
combine
Returns theFingerprint.Rangethat combines two ranges. -
intersect
Returns theFingerprint.Rangethat represents the intersection of the two. -
equals
-
hashCode
public int hashCode()
-