-
public final class EntryModelExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static UnitforEachIn(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function1<ChartEntry, Unit> action)For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry as the block’s argument. final static UnitforEachInAbsolutelyIndexed(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function2<Integer, ChartEntry, Unit> action)For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry and its index in the list as the block’s arguments. final static UnitforEachInRelativelyIndexed(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function2<Integer, ChartEntry, Unit> action)For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry and its index in the filtered list as the block’s arguments. final static UnitforEachInRelativelyIndexed(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function3<Integer, ChartEntry, ChartEntry, Unit> action)For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry, its index in the filtered list, and the next ChartEntry in the filtered list as the block’s arguments. -
-
Method Detail
-
forEachIn
final static Unit forEachIn(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function1<ChartEntry, Unit> action)
For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry as the block’s argument.
-
forEachInAbsolutelyIndexed
final static Unit forEachInAbsolutelyIndexed(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function2<Integer, ChartEntry, Unit> action)
For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry and its index in the list as the block’s arguments.
-
forEachInRelativelyIndexed
final static Unit forEachInRelativelyIndexed(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function2<Integer, ChartEntry, Unit> action)
For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry and its index in the filtered list as the block’s arguments.
-
forEachInRelativelyIndexed
final static Unit forEachInRelativelyIndexed(List<ChartEntry> $self, ClosedFloatingPointRange<Float> range, Function3<Integer, ChartEntry, ChartEntry, Unit> action)
For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry, its index in the filtered list, and the next ChartEntry in the filtered list as the block’s arguments.
-
-
-
-