Checker<java.lang.String>, java.util.function.Predicate<java.lang.String>public class LengthIsInRange extends AbstractStringChecker
| Modifier and Type | Field | Description |
|---|---|---|
static cdc.util.args.Factory<LengthIsInRange> |
FACTORY |
|
static cdc.util.args.FormalArgs |
FARGS |
|
static cdc.util.args.FormalArg<java.lang.Integer> |
MAX |
|
static cdc.util.args.FormalArg<java.lang.Integer> |
MIN |
| Constructor | Description |
|---|---|
LengthIsInRange(int min,
int max) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
explain(boolean result,
java.lang.String arg) |
Explains the conditions at which a positive or negative result is obtained.
|
int |
getMax() |
|
int |
getMin() |
|
boolean |
test(java.lang.String value) |
getValueClassafter, after, afterRaw, and, andRaw, cast, cast, explain, explain, fromConverter, fromFunction, negate, or, orRaw, testAndExplain, testAndExplainpublic static final cdc.util.args.FormalArg<java.lang.Integer> MIN
public static final cdc.util.args.FormalArg<java.lang.Integer> MAX
public static final cdc.util.args.FormalArgs FARGS
public static final cdc.util.args.Factory<LengthIsInRange> FACTORY
public boolean test(java.lang.String value)
public java.lang.String explain(boolean result,
java.lang.String arg)
Checkerresult - The result to explain.arg - The argument name to use in explanations.result.public int getMin()
public int getMax()
Copyright © 2019. All rights reserved.