MCPcopy Create free account
hub / github.com/antlr/codebuff / natural

Method natural

corpus/java/training/guava/collect/Ordering.java:145–149  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

143 * support legacy types from before Java 5.
144 */
145 @GwtCompatible(serializable = true)
146 @SuppressWarnings("unchecked") // TODO(kevinb): right way to explain this??
147 public static <C extends Comparable> Ordering<C> natural() {
148 return (Ordering<C>) NaturalOrdering.INSTANCE;
149 }
150
151 // Static factories
152

Callers 15

treeKeysMethod · 0.95
treeSetValuesMethod · 0.95
ofMethod · 0.95
copyOfMethod · 0.95
emptyMultisetMethod · 0.95
reverseOrderMethod · 0.95
naturalOrderMethod · 0.95
createMethod · 0.95
orNaturalOrderMethod · 0.95
comparatorMethod · 0.95
subMapMethod · 0.95
comparatorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected