Package hudson.model
Class Fingerprint.Range
- java.lang.Object
-
- hudson.model.Fingerprint.Range
-
- Enclosing class:
- Fingerprint
@ExportedBean(defaultVisibility=4) public static final class Fingerprint.Range extends Object
Range of build numbers [start,end). Immutable.
-
-
Constructor Summary
Constructors Constructor Description Range(int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fingerprint.Range
combine(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
equals(Object o)
Fingerprint.Range
expandLeft()
Fingerprint.Range
expandRight()
int
getEnd()
int
getStart()
int
hashCode()
boolean
includes(int i)
Fingerprint.Range
intersect(Fingerprint.Range that)
Returns theFingerprint.Range
that represents the intersection of the two.boolean
isAdjacentTo(Fingerprint.Range that)
boolean
isBiggerThan(int i)
boolean
isDisjoint(Fingerprint.Range that)
Returns true if twoFingerprint.Range
s do not share any common integer.boolean
isIndependent(Fingerprint.Range that)
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)
String
toString()
-
-
-
Method Detail
-
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
public Fingerprint.Range expandRight()
-
expandLeft
public Fingerprint.Range expandLeft()
-
isAdjacentTo
public boolean isAdjacentTo(Fingerprint.Range that)
-
isIndependent
public boolean isIndependent(Fingerprint.Range that)
Returns true if twoFingerprint.Range
s can't be combined into a single range.
-
isDisjoint
public boolean isDisjoint(Fingerprint.Range that)
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
public boolean contains(Fingerprint.Range that)
If this range contains every int that's in the other range, return true
-
combine
public Fingerprint.Range combine(Fingerprint.Range that)
Returns theFingerprint.Range
that combines two ranges.
-
intersect
public Fingerprint.Range intersect(Fingerprint.Range that)
Returns theFingerprint.Range
that represents the intersection of the two.
-
-