MCPcopy Index your code
hub / github.com/antlr/codebuff / natural

Method natural

output/java_guava/1.4.19/Ordering.java:144–148  ·  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

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

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