Class CompareTo<T extends java.lang.Comparable<T>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T wanted  
    • Constructor Summary

      Constructors 
      Constructor Description
      CompareTo​(T value)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.String getName()  
      boolean matches​(T actual)
      Informs if this matcher accepts the given argument.
      protected abstract boolean matchResult​(int result)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • wanted

        private final T extends java.lang.Comparable<T> wanted
    • Constructor Detail

      • CompareTo

        public CompareTo​(T value)
    • Method Detail

      • matches

        public final boolean matches​(T actual)
        Description copied from interface: ArgumentMatcher
        Informs if this matcher accepts the given argument.

        The method should never assert if the argument doesn't match. It should only return false.

        See the example in the top level javadoc for ArgumentMatcher

        Specified by:
        matches in interface ArgumentMatcher<T extends java.lang.Comparable<T>>
        Parameters:
        actual - the argument
        Returns:
        true if this matcher accepts the given argument.
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        protected abstract java.lang.String getName()
      • matchResult

        protected abstract boolean matchResult​(int result)