Skip to content

Commit

Permalink
cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
ennerf authored and wirew0rm committed Sep 25, 2023
1 parent d8696a0 commit c9471cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.kordamp.ikonli.javafx.FontIcon;

import java.util.Optional;
import java.util.function.Function;
import java.util.function.UnaryOperator;

/**
* Experimental plugin that measures and displays the internal
Expand All @@ -33,7 +33,7 @@ public class BenchPlugin extends ChartPlugin {
private static final String ICON_DISABLE_BENCH = "fa-hourglass-end:" + FONT_SIZE;
private final BooleanProperty enabled = new SimpleBooleanProperty(false);
private final HBox buttons = createButtonBar();
private Function<MeasurementRecorder, MeasurementRecorder> measurementFilter = rec -> rec
private UnaryOperator<MeasurementRecorder> measurementFilter = rec -> rec
.atLevel(BenchLevel.Info)
.contains("draw");

Expand Down Expand Up @@ -70,8 +70,8 @@ public BenchPlugin() {
});
}

public BenchPlugin setFilter(Function<MeasurementRecorder, MeasurementRecorder> filterFunc) {
this.measurementFilter = AssertUtils.notNull("Filter", filterFunc);
public BenchPlugin setFilter(UnaryOperator<MeasurementRecorder> measurementFilter) {
this.measurementFilter = AssertUtils.notNull("MeasurementFilter", measurementFilter);
return this;
}

Expand Down

0 comments on commit c9471cf

Please sign in to comment.