クラス ErrorContext<T extends Annotation>
java.lang.Object
org.thinkit.framework.envali.context.ErrorContext<T>
- すべての実装されたインタフェース:
Serializable
public final class ErrorContext<T extends Annotation> extends Object implements Serializable
The context that manages error details such as
ErrorType and error
message.- 導入されたバージョン:
- 1.0.1
- 関連項目:
- 直列化された形式
-
メソッドの概要
修飾子とタイプ メソッド 説明 booleanequals(Object o)TgetAnnotation()The envali anotationParameterConfiggetParameterConfig()The parameter configurationValidationPatterngetValidationPattern()The validation patterninthashCode()static <T extends Annotation>
ErrorContext<T>of(@NonNull ParameterConfig parameterConfig, T annotation, @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContextbased on the data passed as argument.static <T extends Annotation>
ErrorContext<T>of(@NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContextbased on the data passed as argument.static <T extends Annotation>
ErrorContext<T>of(T annotation, @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContextbased on the data passed as argument.StringtoString()
-
メソッドの詳細
-
of
public static <T extends Annotation> ErrorContext<T> of(@NonNull @NonNull ParameterConfig parameterConfig, @NonNull T annotation, @NonNull @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContextbased on the data passed as argument.- 型パラメータ:
T- The annotation type withAnnotationclass as a parent- パラメータ:
parameterConfig- The parameter configuration based onParameterConfigannotation- The Envali supported annotationvalidationPattern- The validation pattern based onValidationPattern- 戻り値:
- The new instance of
ErrorContextbased on the data passed as argument - 例外:
NullPointerException- Ifnullis passed as an argument
-
of
public static <T extends Annotation> ErrorContext<T> of(@NonNull T annotation, @NonNull @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContextbased on the data passed as argument.- 型パラメータ:
T- The annotation type withAnnotationclass as a parent- パラメータ:
annotation- The envali annotationvalidationPattern- The validation pattern based onValidationPattern- 戻り値:
- The new instance of
ErrorContextbased on the data passed as argument - 例外:
NullPointerException- Ifnullis passed as an argument
-
of
public static <T extends Annotation> ErrorContext<T> of(@NonNull @NonNull ValidationPattern validationPattern)Returns the new instance ofErrorContextbased on the data passed as argument.- 型パラメータ:
T- The annotation type withAnnotationclass as a parent- パラメータ:
validationPattern- The validation pattern based onValidationPattern- 戻り値:
- The new instance of
ErrorContextbased on the data passed as argument - 例外:
NullPointerException- Ifnullis passed as an argument
-
toString
-
equals
-
hashCode
public int hashCode() -
getParameterConfig
The parameter configuration -
getAnnotation
The envali anotation -
getValidationPattern
The validation pattern
-