|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.Fingerprint.RangeSet
@ExportedBean(defaultVisibility=3) public static final class Fingerprint.RangeSet
Set of Fingerprint.Range
s.
Constructor Summary | |
---|---|
Fingerprint.RangeSet()
|
Method Summary | |
---|---|
void |
add(Fingerprint.RangeSet that)
|
void |
add(int n)
Expands the range set to include the given value. |
static Fingerprint.RangeSet |
fromString(String list,
boolean skipError)
Parses a Fingerprint.RangeSet from a string like "1-3,5,7-9" |
List<Fingerprint.Range> |
getRanges()
Gets all the ranges. |
boolean |
includes(int i)
|
boolean |
isEmpty()
|
boolean |
isSmallerThan(int n)
Returns true if all the integers logically in this Fingerprint.RangeSet
is smaller than the given integer. |
Iterable<Integer> |
listNumbers()
List all numbers in this range set, in the ascending order. |
Iterable<Integer> |
listNumbersReverse()
List all numbers in this range set in the descending order. |
int |
max()
Returns the largest value in this range. |
int |
min()
Returns the smallest value in this range. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Fingerprint.RangeSet()
Method Detail |
---|
public Iterable<Integer> listNumbers()
public Iterable<Integer> listNumbersReverse()
@Exported public List<Fingerprint.Range> getRanges()
public void add(int n)
public boolean includes(int i)
public void add(Fingerprint.RangeSet that)
public String toString()
toString
in class Object
public boolean isEmpty()
public int min()
If this range is empty, this method throws an exception.
public int max()
If this range is empty, this method throws an exception.
public boolean isSmallerThan(int n)
Fingerprint.RangeSet
is smaller than the given integer. For example, {[1,3)} is smaller than 3,
but {[1,3),[100,105)} is not smaller than anything less than 105.
Note that {} is smaller than any n.
public static Fingerprint.RangeSet fromString(String list, boolean skipError)
Fingerprint.RangeSet
from a string like "1-3,5,7-9"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |