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

Method canonical

corpus/java/training/guava/collect/Cut.java:176–183  ·  view source on GitHub ↗
(DiscreteDomain<Comparable<?>> domain)

Source from the content-addressed store, hash-verified

174 }
175
176 @Override
177 Cut<Comparable<?>> canonical(DiscreteDomain<Comparable<?>> domain) {
178 try {
179 return Cut.<Comparable<?>>belowValue(domain.minValue());
180 } catch (NoSuchElementException e) {
181 return this;
182 }
183 }
184
185 @Override
186 public int compareTo(Cut<Comparable<?>> o) {

Callers

nothing calls this directly

Calls 2

belowValueMethod · 0.95
minValueMethod · 0.45

Tested by

no test coverage detected