Skip to content

Commit

Permalink
Revert removal of tap()
Browse files Browse the repository at this point in the history
Signed-off-by: John Dimeo <dimeo@elderresearch.com>
  • Loading branch information
jdimeo committed May 18, 2020
1 parent 9cea83f commit e36ca66
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -16,6 +16,7 @@ package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.block.function.primitive.<name>ToObjectFunction;
import org.eclipse.collections.api.block.predicate.primitive.Object<name>Predicate;
import org.eclipse.collections.api.block.predicate.primitive.<name>Predicate;
import org.eclipse.collections.api.block.procedure.primitive.<name>Procedure;
import org.eclipse.collections.api.collection.ImmutableCollection;
import org.eclipse.collections.api.collection.primitive.Immutable<name>Collection;

Expand All @@ -38,6 +39,15 @@ public interface ImmutableObject<name>Map\<K> extends Object<name>Map\<K>
@Override
Immutable<name>Collection reject(<name>Predicate predicate);

/**
* @since 9.0.
*/
default ImmutableObject<name>Map\<K> tap(<name>Procedure procedure)
{
this.forEach(procedure);
return this;
}

@Override
\<V> ImmutableCollection\<V> collect(<name>ToObjectFunction\<? extends V> function);

Expand Down

0 comments on commit e36ca66

Please sign in to comment.