Lines Matching defs:head
228 int head = 0;
236 // find the head and tail of the list of records having the same
238 head = i;
246 sublistLength = (tail - head) + 1;
248 hostports[k++] = selectHostport(srvRecords, head, tail);
255 * Randomly select a service record in the range [head, tail] and return
258 private static String selectHostport(SrvRecord[] srvRecords, int head,
260 if (head == tail) {
261 return srvRecords[head].hostport;
264 // compute the running sum for records between head and tail
266 for (int i = head; i <= tail; i++) {
277 for (int i = head; i <= tail; i++) {