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

Method canonical

output/java_guava/1.4.17/Cut.java:181–188  ·  view source on GitHub ↗
(DiscreteDomain<Comparable<?>> domain)

Source from the content-addressed store, hash-verified

179 }
180
181 @Override
182 Cut<Comparable<?>> canonical(DiscreteDomain<Comparable<?>> domain) {
183 try {
184 return Cut.<Comparable<?>>belowValue(domain.minValue());
185 } catch (NoSuchElementException e) {
186 return this;
187 }
188 }
189
190 @Override
191 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