/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
Segment<K,V> seg = segmentAt(segments, k); seg.lock(); try {
lockCount++; } else { segment = segmentAt(segments, j); if (segment == null) continue;
long size = 0L; for (int i = 0; i < segmentCount; i++) { Segment<K,V> segment = segmentAt(segments, i); if (segment != null) { sum += segment.modCount;
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K, V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K, V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
/** * Removes all of the mappings from this map. */ public void clear() { final Segment<K,V>[] segments = this.segments; for (int j = 0; j < segments.length; ++j) { Segment<K,V> s = segmentAt(segments, j); if (s != null) s.clear(); } }
Segment<K,V> seg = segmentAt(segments, k); seg.lock(); try {
Segment<K,V> seg = segmentAt(segments, k); seg.lock(); try {
Segment<K, V> seg = segmentAt(segments, k); seg.lock(); try {
long size = 0L; for (int i = 0; i < segmentCount; i++) { Segment<K,V> segment = segmentAt(segments, i); if (segment != null) { sum += segment.modCount;
long size = 0L; for (int i = 0; i < segmentCount; i++) { Segment<K,V> segment = segmentAt(segments, i); if (segment != null) { sum += segment.modCount;