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

Method comparator

output/java_guava/1.4.19/Maps.java:4020–4032  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4018 private transient Comparator<? super K> comparator;
4019
4020 @SuppressWarnings("unchecked")
4021 @Override
4022 public Comparator<? super K> comparator() {
4023 Comparator<? super K> result = comparator;
4024 if (result == null) {
4025 Comparator<? super K> forwardCmp = forward().comparator();
4026 if (forwardCmp == null) {
4027 forwardCmp = (Comparator) Ordering.natural();
4028 }
4029 result = comparator = reverse(forwardCmp);
4030 }
4031 return result;
4032 }
4033
4034 // If we inline this, we get a javac error.
4035

Callers

nothing calls this directly

Calls 4

forwardMethod · 0.95
naturalMethod · 0.95
reverseMethod · 0.95
comparatorMethod · 0.65

Tested by

no test coverage detected