365366367368369370371372373374375376377
@Override public int hashCode() { int hashCode = 1; DoubleIterable iterable = this.delegate.asReversed(); DoubleIterator iterator = iterable.doubleIterator(); while (iterator.hasNext()) { double item = iterator.next(); hashCode = 31 * hashCode + (int) (Double.doubleToLongBits(item) ^ Double.doubleToLongBits(item) >>> 32); } return hashCode; }
328329330331332333334335336337338339340341
} } } else { DoubleIterator iterator = source.doubleIterator(); while (iterator.hasNext()) { double item = iterator.next(); this.add(item); } } return this.size() != oldSize; }
393394395396397398399400401402403404405406
} } } else { DoubleIterator iterator = source.doubleIterator(); while (iterator.hasNext()) { double item = iterator.next(); this.remove(item); } } return this.size() != oldSize; }
6263646566676869707172
return new ReverseDoubleIterator(); } public void forEach(DoubleProcedure procedure) { DoubleIterator iterator = this.doubleIterator(); while (iterator.hasNext()) { procedure.value(iterator.next()); } }
128129130131132133134135136137138139140
@Override public double[] toArray() { double[] results = new double[this.adapted.size()]; int index = 0; DoubleIterator iterator = this.doubleIterator(); while (iterator.hasNext()) { results[index] = iterator.next(); index++; } return results; }
283284285286287288289290291292293294295296
} }); } else { DoubleIterator iterator = source.doubleIterator(); while (iterator.hasNext()) { double each = iterator.next(); this.add(each); } } return true; }
329330331332333334335336337338339340341342
} }); } else { DoubleIterator iterator = source.doubleIterator(); while (iterator.hasNext()) { double each = iterator.next(); int occurrences = this.items.removeKeyIfAbsent(each, 0); this.size -= occurrences; } } return this.size() != oldSize;
464465466467468469470471472473474475
} public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) { T result = injectedValue; DoubleIterator it = this.doubleIterator(); while (it.hasNext()) { result = function.valueOf(result, it.next()); } return result; }
362363364365366367368369370371372373374
454455456457458459460461462463464465
} public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(this.size()); DoubleIterator iterator = this.delegate.asReversed().doubleIterator(); while (iterator.hasNext()) { double each = iterator.next(); out.writeDouble(each); } }