Class NumberFilter<N extends Number>
- java.lang.Object
-
- com.github.siroshun09.mccommand.common.filter.AbstractFilter<N>
-
- com.github.siroshun09.mccommand.common.filter.NumberFilter<N>
-
- Type Parameters:
N- theNumbertype
public final class NumberFilter<N extends Number> extends AbstractFilter<N>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <N extends Number>
@NotNull NumberFilter<N>create(@NotNull Predicate<N> predicate)Creates theNumberFilter.-
Methods inherited from class com.github.siroshun09.mccommand.common.filter.AbstractFilter
test
-
-
-
-
Method Detail
-
create
@Contract("_ -> new") @NotNull public static <N extends Number> @NotNull NumberFilter<N> create(@NotNull @NotNull Predicate<N> predicate)Creates theNumberFilter.- Type Parameters:
N- theNumbertype- Parameters:
predicate- the predicate to test theNumber- Returns:
- the
NumberFilter
-
-