protected void each(Procedure<? super T> procedure, int start, int end) { for (int i = start; i < end; i++) { Object cur = this.table[i]; if (cur instanceof ChainedBucket) { this.chainedForEach((ChainedBucket) cur, procedure); } else if (cur != null) { procedure.value(this.nonSentinel(cur)); } } }
protected void each(Procedure<? super T> procedure, int start, int end) { for (int i = start; i < end; i++) { Object cur = this.table[i]; if (cur instanceof ChainedBucket) { this.chainedForEach((ChainedBucket) cur, procedure); } else if (cur != null) { procedure.value(this.nonSentinel(cur)); } } }
@Override public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount) { Object[] set = this.table; int sectionSize = set.length / sectionCount; int start = sectionSize * sectionIndex; int end = sectionIndex == sectionCount - 1 ? set.length : start + sectionSize; for (int i = start; i < end; i++) { Object cur = set[i]; if (cur != null) { if (cur instanceof ChainedBucket) { this.chainedForEach((ChainedBucket) cur, procedure); } else { procedure.value(this.nonSentinel(cur)); } } } }
@Override public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount) { Object[] set = this.table; int sectionSize = set.length / sectionCount; int start = sectionSize * sectionIndex; int end = sectionIndex == sectionCount - 1 ? set.length : start + sectionSize; for (int i = start; i < end; i++) { Object cur = set[i]; if (cur != null) { if (cur instanceof ChainedBucket) { this.chainedForEach((ChainedBucket) cur, procedure); } else { procedure.value(this.nonSentinel(cur)); } } } }
protected void each(Procedure<? super T> procedure, int start, int end) { for (int i = start; i < end; i++) { Object cur = this.table[i]; if (cur instanceof ChainedBucket) { this.chainedForEach((ChainedBucket) cur, procedure); } else if (cur != null) { procedure.value(this.nonSentinel(cur)); } } }
@Override public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount) { Object[] set = this.table; int sectionSize = set.length / sectionCount; int start = sectionSize * sectionIndex; int end = sectionIndex == sectionCount - 1 ? set.length : start + sectionSize; for (int i = start; i < end; i++) { Object cur = set[i]; if (cur != null) { if (cur instanceof ChainedBucket) { this.chainedForEach((ChainedBucket) cur, procedure); } else { procedure.value(this.nonSentinel(cur)); } } } }