V
- The type of operandspublic static final class PropertyComparisonConstraint.NotEqualToOp<V> extends PropertyComparisonConstraint<V>
PropertyComparisonConstraint
implementation that applies !=
operator to a value and
other property.NotEqualTo
,
ConstraintFactory.ne(Class, String)
,
ConstraintFactory.ne(Class, String, Comparator)
PropertyComparisonConstraint.EqualToOp<V>, PropertyComparisonConstraint.GreaterThanEqualOp<V>, PropertyComparisonConstraint.GreaterThanOp<V>, PropertyComparisonConstraint.LessThanEqualOp<V>, PropertyComparisonConstraint.LessThanOp<V>, PropertyComparisonConstraint.NotEqualToOp<V>
comparator, propertyName, type
Modifier and Type | Method and Description |
---|---|
protected boolean |
compare(V value1,
V value2)
Compares if the first specified operand not equals to the second.
|
appendMessageArguments, check, getComparator, getMessageTemplate, getPropertyName, getType
validate
protected boolean compare(V value1, V value2)
compare
in class PropertyComparisonConstraint<V>
value1
- First operand.value2
- Second operand.true
if the first specified operand not equals
to the second; false
otherwise.Copyright © 2011–2020 FoxLabs. All rights reserved.