Module rxmicro.validation
Package io.rxmicro.validation.base
Class AbstractDateTimeEqualsConstraintValidator
- java.lang.Object
-
- io.rxmicro.validation.base.AbstractDateTimeEqualsConstraintValidator
-
- Direct Known Subclasses:
FutureOrPresentInstantConstraintValidator,PastOrPresentInstantConstraintValidator,TruncatedTimeInstantConstraintValidator
public class AbstractDateTimeEqualsConstraintValidator extends Object
Base validator class for date and time constraints- Since:
- 0.1
- Author:
- nedis
-
-
Field Summary
Fields Modifier and Type Field Description protected static intTRUNCATED_HOURSprotected static intTRUNCATED_MILLISECONDSprotected static intTRUNCATED_MINUTESprotected static intTRUNCATED_SECONDS
-
Constructor Summary
Constructors Constructor Description AbstractDateTimeEqualsConstraintValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisNotEqualsAfterTruncation(long expectedDirtyTimeInMillis, long actualClearTimeInMillis)Returnstrueif values are not equals after truncation
-
-
-
Field Detail
-
TRUNCATED_MILLISECONDS
protected static final int TRUNCATED_MILLISECONDS
- See Also:
- Constant Field Values
-
TRUNCATED_SECONDS
protected static final int TRUNCATED_SECONDS
- See Also:
- Constant Field Values
-
TRUNCATED_MINUTES
protected static final int TRUNCATED_MINUTES
- See Also:
- Constant Field Values
-
TRUNCATED_HOURS
protected static final int TRUNCATED_HOURS
- See Also:
- Constant Field Values
-
-
Method Detail
-
isNotEqualsAfterTruncation
protected boolean isNotEqualsAfterTruncation(long expectedDirtyTimeInMillis, long actualClearTimeInMillis)Returnstrueif values are not equals after truncation- Parameters:
expectedDirtyTimeInMillis- expected time in millis without truncationactualClearTimeInMillis- actual time in millis after truncation- Returns:
trueif values are not equals after truncation
-
-