Skip to content

Commit

Permalink
Since the tri-consumer interface supposed to be ext-gson-oriented, it…
Browse files Browse the repository at this point in the history
… can follow the ext-gson naming convention
  • Loading branch information
lyubomyr-shaydariv committed Feb 4, 2025
1 parent 47c1e01 commit 01bbc71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/lsh/ext/gson/IBuilder2.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public R build() {

static <A1, A2, R, AUX> IBuilder2<A1, A2, R> of(
final Supplier<? extends AUX> createAux,
final TriConsumer<? super AUX, ? super A1, ? super A2> consume,
final ITriConsumer<? super AUX, ? super A1, ? super A2> consume,
final Function<? super AUX, ? extends R> build
) {
return new IBuilder2<>() {
Expand Down Expand Up @@ -65,7 +65,7 @@ private AUX createOrGet() {

static <A1, A2, R> IBuilder2<A1, A2, R> of(
final Supplier<? extends R> createResult,
final TriConsumer<? super R, ? super A1, ? super A2> consume
final ITriConsumer<? super R, ? super A1, ? super A2> consume
) {
return of(createResult, consume, Function.identity());
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/lsh/ext/gson/IBuilder3.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface IBuilder3<A1, A2, A3, R> {
R build();

static <A1, A2, A3, R> IBuilder3<A1, A2, A3, R> of(
final TriConsumer<? super A1, ? super A2, ? super A3> consume,
final ITriConsumer<? super A1, ? super A2, ? super A3> consume,
final Supplier<? extends R> build
) {
return new IBuilder3<>() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lsh.ext.gson;

@FunctionalInterface
public interface TriConsumer<T, U, V> {
public interface ITriConsumer<T, U, V> {

void accept(T t, U u, V v);

Expand Down

0 comments on commit 01bbc71

Please sign in to comment.