projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
good patch
[sbp.git]
/
src
/
edu
/
berkeley
/
sbp
/
util
/
Range.java
diff --git
a/src/edu/berkeley/sbp/util/Range.java
b/src/edu/berkeley/sbp/util/Range.java
index
399d2bb
..
714cd83
100644
(file)
--- a/
src/edu/berkeley/sbp/util/Range.java
+++ b/
src/edu/berkeley/sbp/util/Range.java
@@
-298,6
+298,11
@@
public class Range {
for(Range r : ranges) add(r);
}
+ public Set(Iterable<Range> it) {
+ this();
+ for(Range r : it) add(r);
+ }
+
/**
* @param rs The set with which to union with this set.
* @return A new set that represents the union of this and the passed set.