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.Rangecombine(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 truebooleanequals(Object o)Fingerprint.RangeexpandLeft()Fingerprint.RangeexpandRight()intgetEnd()intgetStart()inthashCode()booleanincludes(int i)Fingerprint.Rangeintersect(Fingerprint.Range that)Returns theFingerprint.Rangethat represents the intersection of the two.booleanisAdjacentTo(Fingerprint.Range that)booleanisBiggerThan(int i)booleanisDisjoint(Fingerprint.Range that)Returns true if twoFingerprint.Ranges do not share any common integer.booleanisIndependent(Fingerprint.Range that)Returns 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)StringtoString()
-
-
-
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.Ranges can't be combined into a single range.
-
isDisjoint
public boolean isDisjoint(Fingerprint.Range that)
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
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.Rangethat combines two ranges.
-
intersect
public Fingerprint.Range intersect(Fingerprint.Range that)
Returns theFingerprint.Rangethat represents the intersection of the two.
-
-