public class LengthRule extends Object
| Constructor and Description |
|---|
LengthRule() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
fitMax(String text,
int max)
Check text length is no more than max.
|
static boolean |
fitMin(String text,
int min)
Check text length is no less than min.
|
public static boolean fitMax(String text, int max)
text - The input stringmax - The maximum length acceptedpublic static boolean fitMin(String text, int min)
text - The input stringmin - The minimum length acceptedCopyright © 2017. All rights reserved.