Class Ordering.IncomparableValueException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Ordering<T>

    static class Ordering.IncomparableValueException
    extends java.lang.ClassCastException
    Exception thrown by a Ordering.explicit(List) or Ordering.explicit(Object, Object[]) comparator when comparing a value outside the set of values it can compare. Extending ClassCastException may seem odd, but it is required.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      (package private) java.lang.Object value  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • value

        final java.lang.Object value
    • Constructor Detail

      • IncomparableValueException

        IncomparableValueException​(java.lang.Object value)