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

Method comparator

output/java_guava/1.4.18/Maps.java:4016–4028  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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