Skip to content

Commit

Permalink
Add @OverRide annotations for tap() (and one toString()) implementati…
Browse files Browse the repository at this point in the history
…ons.

Signed-off-by: John Dimeo <dimeo@elderresearch.com>
  • Loading branch information
jdimeo committed Jun 1, 2020
1 parent 3c67801 commit 80b5f01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public interface ImmutableObject<name>Map\<K> extends Object<name>Map\<K>
/**
* @since 9.0.
*/
@Override
default ImmutableObject<name>Map\<K> tap(<name>Procedure procedure)
{
this.forEach(procedure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public interface MutableObject<name>Map\<K> extends Object<name>Map\<K>
/**
* @since 9.0.
*/
@Override
default MutableObject<name>Map\<K> tap(<name>Procedure procedure)
{
this.forEach(procedure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public interface Object<name>Map\<K> extends <name>Iterable
/**
* @since 9.0.
*/
@Override
default Object<name>Map\<K> tap(<name>Procedure procedure)
{
this.forEach(procedure);
Expand All @@ -124,6 +125,7 @@ public interface Object<name>Map\<K> extends <name>Iterable
*
* @return a string representation of this Object<name>Map
*/
@Override
String toString();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public interface <name>ValuesMap extends <name>Iterable
/**
* @since 9.0.
*/
@Override
default <name>ValuesMap tap(<name>Procedure procedure)
{
this.forEach(procedure);
Expand Down

0 comments on commit 80b5f01

Please sign in to comment.