Skip to content

Commit

Permalink
#45 - added missing call() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Grabski committed Feb 21, 2018
1 parent 10c18ee commit 3e8df35
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
*/
public class ComponentFunctionCallback {

private MountedComponentNavigation mountedComponentNavigation = new MountedComponentNavigation();
private List<FunctionCallBuilder> functionCalls = newArrayList();
private MountedComponentNavigation mountedComponentNavigation = new MountedComponentNavigation();
private List<FunctionCallBuilder> functionCalls = newArrayList();

public final void call(FunctionCallBuilder functionCallBuilder) {
functionCalls.add(functionCallBuilder);
}
public final void call(FunctionCallBuilder functionCallBuilder) {
functionCalls.add(functionCallBuilder);
}

public final void navigateToMounted(Class<? extends LicketComponent<?>> componentClass) {
mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), paramsAggregator -> {});
}
public final void navigateToMounted(Class<? extends LicketComponent<?>> componentClass) {
call(mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), paramsAggregator -> {
}));
}

public final void navigateToMounted(Class<? extends LicketComponent<?>> componentClass, Consumer<MountingParamsAggregator> params) {
mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), params);
}
public final void navigateToMounted(Class<? extends LicketComponent<?>> componentClass, Consumer<MountingParamsAggregator> params) {
call(mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), params));
}

public final void forEachCall(Consumer<FunctionCallBuilder> functionCallConsumer) {
functionCalls.forEach(functionCallConsumer);
}
public final void forEachCall(Consumer<FunctionCallBuilder> functionCallConsumer) {
functionCalls.forEach(functionCallConsumer);
}
}

0 comments on commit 3e8df35

Please sign in to comment.