Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
@Override public void forEach(BiConsumer<? super K, ? super V> action) { delegate.forEach(action); }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
@Override public void forEach(BiConsumer<? super K, ? super V> action) { delegate.forEach(action); }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
@Override public void forEach(BiConsumer<? super K, ? super V> action) { delegate.forEach(action); }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
@Override public void forEach(BiConsumer<? super K, ? super V> action) { delegate.forEach(action); }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
Accumulator<K, V> combine(Accumulator<K, V> other) { if (this.map == null) { return other; } else if (other.map == null) { return this; } else { other.map.forEach(this::put); return this; } }
public TypedStreamReaderImpl( LogStream stream, EnumMap<ValueType, Class<? extends UnpackedObject>> eventRegistry) { this.reader = new BufferedLogStreamReader(stream); this.eventCache = new HashMap<>(); eventRegistry.forEach((t, c) -> eventCache.put(c, ReflectUtil.newInstance(c))); }
public TypedStreamReaderImpl( LogStream stream, EnumMap<ValueType, Class<? extends UnpackedObject>> eventRegistry) { this.reader = new BufferedLogStreamReader(stream); this.eventCache = new HashMap<>(); eventRegistry.forEach((t, c) -> eventCache.put(c, ReflectUtil.newInstance(c))); }
@Override public EntityMetadataRemapper clone() { EntityMetadataRemapper clone = new EntityMetadataRemapper(); entries.forEach((version, lEntries) -> clone.getRemaps(version).addAll(lEntries)); return clone; }
@Override public void writeMap(EntryWriter ew) throws IOException { ew.put("action", String.valueOf(getAction())); ew.put("hints", (MapWriter) ew1 -> hints.forEach((hint, o) -> ew1.putNoEx(hint.toString(), o))); }