@@ -55,39 +55,88 @@ private static String asText(int comparison) {
5555 }
5656
5757 /**
58- * @return Is value = expected?
58+ * Creates a matcher of {@link Comparable} object that matches when the examined object is
59+ * equal to the specified value, as reported by the <code>compareTo</code> method of the
60+ * <b>examined</b> object.
61+ * <p/>
62+ * For example:
63+ * <pre>assertThat(1, comparesEqualTo(1))</pre>
64+ *
65+ * @param value
66+ * the value which, when passed to the compareTo method of the examined object, should return zero
67+ *
5968 */
6069 @ Factory
6170 public static <T extends Comparable <T >> Matcher <T > comparesEqualTo (T value ) {
6271 return new OrderingComparison <T >(value , EQUAL , EQUAL );
6372 }
6473
6574 /**
66- * Is value > expected?
75+ * Creates a matcher of {@link Comparable} object that matches when the examined object is
76+ * greater than the specified value, as reported by the <code>compareTo</code> method of the
77+ * <b>examined</b> object.
78+ * <p/>
79+ * For example:
80+ * <pre>assertThat(2, greaterThan(1))</pre>
81+ *
82+ * @param value
83+ * the value which, when passed to the compareTo method of the examined object, should return greater
84+ * than zero
85+ *
6786 */
6887 @ Factory
6988 public static <T extends Comparable <T >> Matcher <T > greaterThan (T value ) {
7089 return new OrderingComparison <T >(value , GREATER_THAN , GREATER_THAN );
7190 }
7291
7392 /**
74- * Is value >= expected?
93+ * Creates a matcher of {@link Comparable} object that matches when the examined object is
94+ * greater than or equal to the specified value, as reported by the <code>compareTo</code> method
95+ * of the <b>examined</b> object.
96+ * <p/>
97+ * For example:
98+ * <pre>assertThat(1, greaterThanOrEqualTo(1))</pre>
99+ *
100+ * @param value
101+ * the value which, when passed to the compareTo method of the examined object, should return greater
102+ * than or equal to zero
103+ *
75104 */
76105 @ Factory
77106 public static <T extends Comparable <T >> Matcher <T > greaterThanOrEqualTo (T value ) {
78107 return new OrderingComparison <T >(value , EQUAL , GREATER_THAN );
79108 }
80109
81110 /**
82- * Is value < expected?
111+ * Creates a matcher of {@link Comparable} object that matches when the examined object is
112+ * less than the specified value, as reported by the <code>compareTo</code> method of the
113+ * <b>examined</b> object.
114+ * <p/>
115+ * For example:
116+ * <pre>assertThat(1, lessThan(2))</pre>
117+ *
118+ * @param value
119+ * the value which, when passed to the compareTo method of the examined object, should return less
120+ * than zero
121+ *
83122 */
84123 @ Factory
85124 public static <T extends Comparable <T >> Matcher <T > lessThan (T value ) {
86125 return new OrderingComparison <T >(value , LESS_THAN , LESS_THAN );
87126 }
88127
89128 /**
90- * Is value <= expected?
129+ * Creates a matcher of {@link Comparable} object that matches when the examined object is
130+ * less than or equal to the specified value, as reported by the <code>compareTo</code> method
131+ * of the <b>examined</b> object.
132+ * <p/>
133+ * For example:
134+ * <pre>assertThat(1, lessThanOrEqualTo(1))</pre>
135+ *
136+ * @param value
137+ * the value which, when passed to the compareTo method of the examined object, should return less
138+ * than or equal to zero
139+ *
91140 */
92141 @ Factory
93142 public static <T extends Comparable <T >> Matcher <T > lessThanOrEqualTo (T value ) {
0 commit comments