Package io.github.mmm.validation.string
Class ValidatorPasswordConfirmation
- java.lang.Object
-
- io.github.mmm.validation.AbstractValidator<V>
-
- io.github.mmm.validation.AbstractValueValidator<CharSequence>
-
- io.github.mmm.validation.string.ValidatorPasswordConfirmation
-
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>
,Validator<CharSequence>
,Iterable<Validator<?>>
public class ValidatorPasswordConfirmation extends AbstractValueValidator<CharSequence>
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
-
Fields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY
-
-
Constructor Summary
Constructors Constructor Description ValidatorPasswordConfirmation(Supplier<? extends CharSequence> passwordSupplier)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
protected io.github.mmm.nls.NlsMessage
validateNotNull(CharSequence value)
protected io.github.mmm.base.i18n.Localizable
validateNull()
-
Methods inherited from class io.github.mmm.validation.AbstractValueValidator
validate
-
Methods inherited from class io.github.mmm.validation.AbstractValidator
hashCode, isDynamic, source2string, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.base.lang.Composable
getChild, getChildCount, iterator
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getMax, getMin, isMandatory, validate
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
getId()
, Constant Field Values
-
-
Constructor Detail
-
ValidatorPasswordConfirmation
public ValidatorPasswordConfirmation(Supplier<? extends CharSequence> passwordSupplier)
The constructor.- Parameters:
passwordSupplier
- theSupplier
of the primary password that has to match.
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceValidator<CharSequence>
- Overrides:
getId
in classAbstractValidator<CharSequence>
-
validateNull
protected io.github.mmm.base.i18n.Localizable validateNull()
- Overrides:
validateNull
in classAbstractValueValidator<CharSequence>
-
validateNotNull
protected io.github.mmm.nls.NlsMessage validateNotNull(CharSequence value)
- Specified by:
validateNotNull
in classAbstractValueValidator<CharSequence>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractValidator<CharSequence>
-
-