@Deprecated public abstract class ValidatableStringRecord<T extends ValidatableStringRecord<T>> extends Object implements Comparable<T>
| Modifier | Constructor and Description |
|---|---|
protected |
ValidatableStringRecord(String value,
Pattern pattern)
Deprecated.
构造字符串值对象
|
protected |
ValidatableStringRecord(String value,
Pattern pattern,
String errorMessage)
Deprecated.
构造字符串值对象
|
protected |
ValidatableStringRecord(String value,
Pattern pattern,
Supplier<String> errorMessageSupplier)
Deprecated.
构造字符串值对象
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(T o)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
protected Matcher |
getMatcher()
Deprecated.
获取正则匹配结果
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
String |
value()
Deprecated.
值对象的字符串值。
|
protected ValidatableStringRecord(String value, Pattern pattern)
value - 字符串值pattern - 正则protected ValidatableStringRecord(String value, Pattern pattern, Supplier<String> errorMessageSupplier)
value - 字符串值pattern - 正则errorMessageSupplier - 正则不匹配时的错误信息public final String value()
public int compareTo(T o)
compareTo in interface Comparable<T extends ValidatableStringRecord<T>>protected final Matcher getMatcher()
Matcher 对象Copyright © 2026. All rights reserved.