summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2023-01-22 11:06:53 +0100
committerJon Bratseth <bratseth@gmail.com>2023-01-22 11:06:53 +0100
commitb670e5ece2f3c99b03f68c7f96be2da351f6687a (patch)
tree30467f391e6221f214635f43e88c1a3fb0c15ed9 /vespajlib
parent359f78c9511f73216a30f105acf69514f294d913 (diff)
Move group size constraints the minimal amount
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/collections/IntRange.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/collections/IntRange.java b/vespajlib/src/main/java/com/yahoo/collections/IntRange.java
index 3c3815589ab..e2a61688278 100644
--- a/vespajlib/src/main/java/com/yahoo/collections/IntRange.java
+++ b/vespajlib/src/main/java/com/yahoo/collections/IntRange.java
@@ -77,14 +77,14 @@ public class IntRange {
return new IntRange(OptionalInt.of(from), OptionalInt.of(to));
}
- /** Returns this with a from limit which is at most the given value */
+ /** Returns this with a 'from' limit which is at most the given value */
public IntRange fromAtMost(int minLimit) {
if (from.isEmpty()) return this;
if (from.getAsInt() <= minLimit) return this;
return new IntRange(OptionalInt.of(minLimit), to);
}
- /** Returns this with a to limit which is at least the given value */
+ /** Returns this with a 'to' limit which is at least the given value */
public IntRange toAtLeast(int maxLimit) {
if (to.isEmpty()) return this;
if (to.getAsInt() >= maxLimit) return this;