Lines Matching defs:head
187 int head = 0;
195 // find the head and tail of the list of records having the same
197 head = i;
205 sublistLength = (tail - head) + 1;
207 hostports[k++] = selectHostport(srvRecords, head, tail);
214 * Randomly select a service record in the range [head, tail] and return
217 private static String selectHostport(SrvRecord[] srvRecords, int head,
219 if (head == tail) {
220 return srvRecords[head].hostport;
223 // compute the running sum for records between head and tail
225 for (int i = head; i <= tail; i++) {
236 for (int i = head; i <= tail; i++) {