* * *

|  [ **Overview** ](../../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/OrderingComparison.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../../deprecated-list.html) |  [ **Index** ](../../../index-all.html) |  [ **Help** ](../../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../../org/hamcrest/number/IsCloseTo.html "class in org.hamcrest.number") NEXT CLASS  |  [ **FRAMES** ](../../../index.html?org/hamcrest/number/OrderingComparison.html) [ **NO FRAMES** ](OrderingComparison.html) [ **All Classes** ](../../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD | CONSTR |  METHOD  |  DETAIL: FIELD | CONSTR |  METHOD   
  
* * *

##  org.hamcrest.number  
Class OrderingComparison<T extends java.lang.Comparable<T>>

    
    
    java.lang.Object
      ![extended by ](../../../resources/inherit.gif)[org.hamcrest.BaseMatcher](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest")<T>
          ![extended by ](../../../resources/inherit.gif)[org.hamcrest.TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<T>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.number.OrderingComparison <T>**
    

**All Implemented Interfaces:**      [ Matcher
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T>, [
SelfDescribing ](../../../org/hamcrest/SelfDescribing.html "interface in
org.hamcrest")

* * *
    
    
    public class **OrderingComparison <T extends java.lang.Comparable<T>>**extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<T>

* * *

**Method Summary**  
---  
` static  |  ` <T extends java.lang.Comparable<T>>   
[ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<T> `  
---  
` ` **[ comparesEqualTo
](../../../org/hamcrest/number/OrderingComparison.html#comparesEqualTo\(T\))
** (T value) `  
Creates a matcher of ` Comparable ` object that matches when the examined
object is equal to the specified value, as reported by the ` compareTo `
method of the **examined** object.  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/number/OrderingComparison.html#describeMismatchSafely\(T, org.hamcrest.Description\)) ** ( [ T ](../../../org/hamcrest/number/OrderingComparison.html "type parameter in OrderingComparison") actual, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/number/OrderingComparison.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` static  |  ` <T extends java.lang.Comparable<T>>   
[ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<T> `  
---  
` ` **[ greaterThan
](../../../org/hamcrest/number/OrderingComparison.html#greaterThan\(T\)) ** (T
value) `  
Creates a matcher of ` Comparable ` object that matches when the examined
object is greater than the specified value, as reported by the ` compareTo `
method of the **examined** object.  
` static  |  ` <T extends java.lang.Comparable<T>>   
[ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<T> `  
---  
` ` **[ greaterThanOrEqualTo
](../../../org/hamcrest/number/OrderingComparison.html#greaterThanOrEqualTo\(T\))
** (T value) `  
Creates a matcher of ` Comparable ` object that matches when the examined
object is greater than or equal to the specified value, as reported by the `
compareTo ` method of the **examined** object.  
` static  |  ` <T extends java.lang.Comparable<T>>   
[ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<T> `  
---  
` ` **[ lessThan
](../../../org/hamcrest/number/OrderingComparison.html#lessThan\(T\)) **