hudson.model
Class Fingerprint.Range

java.lang.Object
  extended by 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
Fingerprint.Range(int start, int end)
           
 
Method Summary
 Fingerprint.Range combine(Fingerprint.Range that)
          Returns the Fingerprint.Range that combines two ranges.
 Fingerprint.Range expandLeft()
           
 Fingerprint.Range expandRight()
           
 int getEnd()
           
 int getStart()
           
 boolean includes(int i)
           
 boolean isAdjacentTo(Fingerprint.Range that)
           
 boolean isBiggerThan(int i)
           
 boolean isIndependent(Fingerprint.Range that)
          Returns true if two Fingerprint.Ranges 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fingerprint.Range

public Fingerprint.Range(int start,
                         int end)
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)

toString

public String toString()
Overrides:
toString in class Object

isIndependent

public boolean isIndependent(Fingerprint.Range that)
Returns true if two Fingerprint.Ranges can't be combined into a single range.


isSingle

public boolean isSingle()
Returns true if this range only represents a single number.


combine

public Fingerprint.Range combine(Fingerprint.Range that)
Returns the Fingerprint.Range that combines two ranges.



Copyright © 2004-2013. All Rights Reserved.