public Collection values() { Collection result = new LinkedList(); for (int i = 0; i < segments.length; i++) { segments[i].lock(); try { for (int j = 0; j < segments[i].table.length; j++) { Object o = segments[i].table [j]; if (o != null) { if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) result.add(e); } else { Object arr [] = (Object[]) o; for (int k = 0; k < arr.length; k++) { Entry info = (Entry) arr[k]; if (info != null && info.isValid()) result.add(info); } } } } } finally { segments[i].unlock(); } } return result; }
if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { newCount++; for (int index = 0; index < arr.length; index++) { Entry e = (Entry) arr[index]; if (e != null && e.isValid()) { localCount++; if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++; for (int j = 0; j < arr.length; j++) { Entry e = (Entry) arr[j]; if (e != null && e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++;
if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { newCount++; for (int index = 0; index < arr.length; index++) { Entry e = (Entry) arr[index]; if (e != null && e.isValid()) { localCount++; if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++; for (int j = 0; j < arr.length; j++) { Entry e = (Entry) arr[j]; if (e != null && e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++;
if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { newCount++; for (int index = 0; index < arr.length; index++) { Entry e = (Entry) arr[index]; if (e != null && e.isValid()) { localCount++; if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++; for (int j = 0; j < arr.length; j++) { Entry e = (Entry) arr[j]; if (e != null && e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++;
public int size() { int count = 0; for (int i = 0; i < segments.length; i++) { segments[i].lock(); try { for (int j = 0; j < segments[i].table.length; j++) { Object o = segments[i].table [j]; if (o != null) { if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) count++; } else { Object arr [] = (Object[]) o; for (int k = 0; k < arr.length; k++) { Entry info = (Entry) arr[k]; if (info != null && info.isValid()) count++; } } } } } finally { segments[i].unlock(); } } return count; }
public int size() { int count = 0; for (int i = 0; i < segments.length; i++) { segments[i].lock(); try { for (int j = 0; j < segments[i].table.length; j++) { Object o = segments[i].table [j]; if (o != null) { if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) count++; } else { Object arr [] = (Object[]) o; for (int k = 0; k < arr.length; k++) { Entry info = (Entry) arr[k]; if (info != null && info.isValid()) count++; } } } } } finally { segments[i].unlock(); } } return count; }
public int size() { int count = 0; for (int i = 0; i < segments.length; i++) { segments[i].lock(); try { for (int j = 0; j < segments[i].table.length; j++) { Object o = segments[i].table [j]; if (o != null) { if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) count++; } else { Object arr [] = (Object[]) o; for (int k = 0; k < arr.length; k++) { Entry info = (Entry) arr[k]; if (info != null && info.isValid()) count++; } } } } } finally { segments[i].unlock(); } } return count; }
if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { newCount++; for (int index = 0; index < arr.length; index++) { Entry e = (Entry) arr[index]; if (e != null && e.isValid()) { localCount++; if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++; for (int j = 0; j < arr.length; j++) { Entry e = (Entry) arr[j]; if (e != null && e.isValid()) { int index = e.getHash() & sizeMask; put(e, index, newTable); newCount++;
public int size() { int count = 0; for (int i = 0; i < segments.length; i++) { segments[i].lock(); try { for (int j = 0; j < segments[i].table.length; j++) { Object o = segments[i].table [j]; if (o != null) { if (o instanceof Entry) { Entry e = (Entry) o; if (e.isValid()) count++; } else { Object arr [] = (Object[]) o; for (int k = 0; k < arr.length; k++) { Entry info = (Entry) arr[k]; if (info != null && info.isValid()) count++; } } } } } finally { segments[i].unlock(); } } return count; }