public final class OptionChecker extends Object
| Constructor and Description |
|---|
OptionChecker() |
| Modifier and Type | Method and Description |
|---|---|
static <O> com.google.common.base.Predicate<O> |
allowValues(O... values) |
static <O> com.google.common.base.Predicate<O> |
disallowEmpty() |
static <O> com.google.common.base.Predicate<List<O>> |
inValues(O... values) |
static <N extends Number> |
nonNegativeInt() |
static <N extends Number> |
positiveInt() |
static <N extends Number> |
rangeDouble(N min,
N max) |
static <N extends Number> |
rangeInt(N min,
N max) |
public static <O> com.google.common.base.Predicate<O> disallowEmpty()
public static <O> com.google.common.base.Predicate<O> allowValues(O... values)
public static <O> com.google.common.base.Predicate<List<O>> inValues(O... values)
public static <N extends Number> com.google.common.base.Predicate<N> positiveInt()
public static <N extends Number> com.google.common.base.Predicate<N> nonNegativeInt()
public static <N extends Number> com.google.common.base.Predicate<N> rangeInt(N min, N max)
public static <N extends Number> com.google.common.base.Predicate<N> rangeDouble(N min, N max)
Copyright © 2021. All rights reserved.