X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Futil%2FIntegerTopology.java;h=cac19e9b19676da56eb8ec7fde15d15c2be445b5;hp=e9f01dfc4428ed36b90b0e792a16ca6f680bb695;hb=c61dfbe5593a9257d39e84261d48472a74975afa;hpb=4c5cadfb5604449d04e2cdaaae7b9a61795c9044 diff --git a/src/edu/berkeley/sbp/util/IntegerTopology.java b/src/edu/berkeley/sbp/util/IntegerTopology.java index e9f01df..cac19e9 100644 --- a/src/edu/berkeley/sbp/util/IntegerTopology.java +++ b/src/edu/berkeley/sbp/util/IntegerTopology.java @@ -9,8 +9,8 @@ import edu.berkeley.sbp.*; /** implementation of Topology for any class for which there is a mapping to the ints */ public class IntegerTopology implements Topology { private final Range.Set rs; - - public Range.Set getRanges() { return rs; /*FIXME: copy?*/ } + + public Range.Set getRanges() { return new Range.Set(rs); } public IntegerTopology() { this(new Range.Set()); } public IntegerTopology(V v) { this(v.toInt()); }