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
-
Method Summary
Modifier and TypeMethodDescriptioncombine
(Fingerprint.Range that) Returns theFingerprint.Range
that combines two ranges.boolean
contains
(Fingerprint.Range that) If this range contains every int that's in the other range, return trueboolean
int
getEnd()
int
getStart()
int
hashCode()
boolean
includes
(int i) intersect
(Fingerprint.Range that) Returns theFingerprint.Range
that represents the intersection of the two.boolean
boolean
isBiggerThan
(int i) boolean
isDisjoint
(Fingerprint.Range that) Returns true if twoFingerprint.Range
s do not share any common integer.boolean
Returns true if twoFingerprint.Range
s can't be combined into a single range.boolean
isSingle()
Returns true if this range only represents a single number.boolean
isSmallerThan
(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.Range
s can't be combined into a single range. -
isDisjoint
Returns true if twoFingerprint.Range
s 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.Range
that combines two ranges. -
intersect
Returns theFingerprint.Range
that represents the intersection of the two. -
equals
-
hashCode
public int hashCode()
-