Lines Matching defs:IntRange

42      * Initial capacity for IntRange clients array list. There will be
49 * <p>When a client is added, the IntRange may merge with one or more
50 * adjacent IntRanges to form a single combined IntRange.
51 * <p>When a client is removed, the IntRange may divide into several
54 private class IntRange {
61 * Create a new IntRange with a single client.
66 IntRange(int startId, int endId, String client) {
74 * Create a new IntRange for an existing ClientRange.
77 IntRange(ClientRange clientRange) {
85 * Create a new IntRange from an existing IntRange. This is used for
88 * is made of the elements of the original IntRange preceding the element
90 * IntRange or to a new IntRange when a gap is found.
91 * @param intRange the original IntRange to copy elements from
94 IntRange(IntRange intRange, int numElements) {
179 private ArrayList<IntRange> mRanges = new ArrayList<IntRange>();
196 // empty range list: add the initial IntRange
199 mRanges.add(new IntRange(startId, endId, client));
207 IntRange range = mRanges.get(startIndex);
219 IntRange nextRange = null;
258 mRanges.add(startIndex, new IntRange(startId, endId, client));
276 IntRange endRange = mRanges.get(endIndex);
293 IntRange joinRange = mRanges.get(joinIndex);
317 IntRange joinRange = mRanges.get(joinIndex);
343 IntRange joinRange = mRanges.get(joinIndex);
364 IntRange testRange = mRanges.get(testIndex);
385 IntRange endRange = mRanges.get(endIndex);
405 IntRange joinRange = mRanges.get(joinIndex);
420 mRanges.add(new IntRange(startId, endId, client));
441 IntRange range = mRanges.get(i);
445 // found the IntRange that encloses the client range, if any
449 // handle common case of IntRange containing one ClientRange
470 // Save the original start and end id for the original IntRange
503 // copy the IntRange so that we can remove elements and modify the
506 IntRange rangeCopy = new IntRange(range, crIndex);
510 // the start id of the IntRange.
525 // remove the original IntRange and append newRanges to mRanges.
526 // Otherwise, leave the original IntRange in mRanges and return false.
527 ArrayList<IntRange> newRanges = new ArrayList<IntRange>();
529 IntRange currentRange = rangeCopy;
536 currentRange = new IntRange(nextCr);
555 // replace the original IntRange with newRanges
621 Iterator<IntRange> itr = mRanges.iterator();
624 IntRange currRange = (IntRange) itr.next();
636 IntRange range = mRanges.get(i);