We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb86c79 commit 7ad94e9Copy full SHA for 7ad94e9
src/com/rabbitmq/utility/IntAllocator.java
@@ -45,6 +45,9 @@ public class IntAllocator{
45
private final int[] unsorted;
46
private int unsortedCount = 0;
47
48
+ /**
49
+ * A class representing an inclusive interval from start to end.
50
+ */
51
private static class Interval{
52
Interval(int start, int end){
53
this.start = start;
@@ -57,6 +60,9 @@ private static class Interval{
57
60
int length(){ return end - start + 1; }
58
61
}
59
62
63
64
+ * Creates an IntAllocator allocating integer IDs within the inclusive range [start, end]
65
66
public IntAllocator(int start, int end){
67
if(start > end) throw new IllegalArgumentException("illegal range [" + start +", " + end + "]");
68
0 commit comments