128129130131132133134135136137138139140
@Override public float[] toArray() { float[] results = new float[this.adapted.size()]; int index = 0; FloatIterator iterator = this.floatIterator(); while (iterator.hasNext()) { results[index] = iterator.next(); index++; } return results; }
283284285286287288289290291292293294295296
} }); } else { FloatIterator iterator = source.floatIterator(); while (iterator.hasNext()) { float each = iterator.next(); this.add(each); } } return true; }
329330331332333334335336337338339340341342
} }); } else { FloatIterator iterator = source.floatIterator(); while (iterator.hasNext()) { float each = iterator.next(); int occurrences = this.items.removeKeyIfAbsent(each, 0); this.size -= occurrences; } } return this.size() != oldSize;
464465466467468469470471472473474475
} public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) { T result = injectedValue; FloatIterator it = this.floatIterator(); while (it.hasNext()) { result = function.valueOf(result, it.next()); } return result; }
362363364365366367368369370371372373374
@Override public int hashCode() { int hashCode = 1; FloatIterable iterable = this.delegate.asReversed(); FloatIterator iterator = iterable.floatIterator(); while (iterator.hasNext()) { float item = iterator.next(); hashCode = 31 * hashCode + Float.floatToIntBits(item); } return hashCode; }
454455456457458459460461462463464465
} public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(this.size()); FloatIterator iterator = this.delegate.asReversed().floatIterator(); while (iterator.hasNext()) { float each = iterator.next(); out.writeFloat(each); } }
282728282829283028312832283328342835283628372838
public boolean removeAll(FloatIterable source) { int oldSize = CharFloatHashMap.this.size(); FloatIterator iterator = source.floatIterator(); while (iterator.hasNext()) { this.remove(iterator.next()); } return oldSize != CharFloatHashMap.this.size(); }
195519561957195819591960196119621963196419651966
} public boolean removeAll(FloatIterable source) { int oldSize = FloatLongHashMap.this.size(); FloatIterator iterator = source.floatIterator(); while (iterator.hasNext()) { FloatLongHashMap.this.removeKey(iterator.next()); } return oldSize != FloatLongHashMap.this.size(); }
23172318231923202321232223232324232523262327232823292330
return true; } public boolean containsAll(FloatIterable source) { FloatIterator iterator = source.floatIterator(); while (iterator.hasNext()) { if (!FloatLongHashMap.this.containsKey(iterator.next())) { return false; } } return true;
144614471448144914501451145214531454145514561457145814591460
{ if (this.isEmpty()) { throw new NoSuchElementException(); } FloatIterator iterator = this.floatIterator(); float max = iterator.next(); while (iterator.hasNext()) { float value = iterator.next(); if (Float.compare(max, value) < 0) { max = value; } }