Lines Matching defs:ClientRange

58         final ArrayList<ClientRange> clients;
69 clients = new ArrayList<ClientRange>(INITIAL_CLIENTS_ARRAY_SIZE);
70 clients.add(new ClientRange(startId, endId, client));
74 * Create a new IntRange for an existing ClientRange.
75 * @param clientRange the initial ClientRange to add
77 IntRange(ClientRange clientRange) {
80 clients = new ArrayList<ClientRange>(INITIAL_CLIENTS_ARRAY_SIZE);
86 * removing a ClientRange, because new IntRanges may need to be created
87 * for any gaps that open up after the ClientRange is removed. A copy
97 this.clients = new ArrayList<ClientRange>(intRange.clients.size());
104 * Insert new ClientRange in order by start id.
105 * <p>If the new ClientRange is known to be sorted before or after the
110 * @param range the new ClientRange to insert
112 void insert(ClientRange range) {
115 ClientRange nextRange = clients.get(i);
131 private class ClientRange {
136 ClientRange(int startId, int endId, String client) {
144 if (o != null && o instanceof ClientRange) {
145 ClientRange other = (ClientRange) o;
207 range.clients.add(0, new ClientRange(startId, endId, client));
221 // insert new ClientRange before existing ranges
222 range.clients.add(0, new ClientRange(startId, endId, client));
244 // insert new ClientRange before existing ranges
245 range.clients.add(0, new ClientRange(startId, endId, client));
268 // insert new ClientRange before existing ranges
269 range.clients.add(0, new ClientRange(startId, endId, client));
289 range.insert(new ClientRange(startId, endId, client));
308 range.insert(new ClientRange(startId, endId, client));
323 // insert new ClientRange in place
324 range.insert(new ClientRange(startId, endId, client));
373 ArrayList<ClientRange> clients = range.clients;
375 // handle common case of IntRange containing one ClientRange
378 ClientRange cr = clients.get(0);
400 ClientRange cr = clients.get(crIndex);
402 // found the ClientRange to remove, check if it's the last in the list
426 // removing the first ClientRange, so we may need to increase
449 ClientRange nextCr = clients.get(nextIndex);
487 // not the ClientRange to remove; save highest end ID seen so far