Change-Id: I9bab7c058fec93879f9ec5b6eef5ef55fb7405c6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30155
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
public String query(long value) {
for (LabelAndRange r : ranges) {
if (r.intersects(value)) {
- return r.fLabel;
+ return r.getLabel();
}
}
return null;
}
- private class LabelAndRange {
+ private static class LabelAndRange {
private final long low, high;
private final String fLabel;
+ /**
+ * Get the label
+ *
+ * @return the label
+ */
+ public String getLabel() {
+ return fLabel;
+ }
+
public LabelAndRange(long low, long high, String str) {
this.low = low;
this.high = high;