Returns a serializable ordering that uses the natural order of the values. The ordering throws a NullPointerException when passed a null parameter. The type specification is , instead of the technically correct >, to s
()
| 142 | * support legacy types from before Java 5. |
| 143 | */ |
| 144 | @GwtCompatible(serializable = true) |
| 145 | @SuppressWarnings("unchecked") // TODO(kevinb): right way to explain this?? |
| 146 | public static <C extends Comparable> Ordering<C> natural() { |
| 147 | return (Ordering<C>) NaturalOrdering.INSTANCE; |
| 148 | } |
| 149 | |
| 150 | // Static factories |
| 151 |
no outgoing calls
no test coverage detected