Class ImposesEquality<T>
- java.lang.Object
-
- org.saynotobugs.confidence.quality.comparator.ImposesEquality<T>
-
-
Constructor Summary
Constructors Constructor Description ImposesEquality(java.lang.Iterable<? extends T> equalElements)ImposesEquality(T... equalElements)Creates aQualitythat matches if theComparatorunder test orders the given elements in the same ascending order (left to right).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentassessmentOf(java.util.Comparator<T> candidate)Descriptiondescription()
-
-
-
Constructor Detail
-
ImposesEquality
@SafeVarargs public ImposesEquality(T... equalElements)
Creates aQualitythat matches if theComparatorunder test orders the given elements in the same ascending order (left to right).
-
ImposesEquality
public ImposesEquality(java.lang.Iterable<? extends T> equalElements)
-
-
Method Detail
-
assessmentOf
public Assessment assessmentOf(java.util.Comparator<T> candidate)
- Specified by:
assessmentOfin interfaceQuality<T>
-
description
public Description description()
- Specified by:
descriptionin interfaceQuality<T>
-
-