MCPcopy Index your code
hub / github.com/apache/groovy / areReversed

Method areReversed

src/main/java/groovy/lang/ObjectRange.java:199–205  ·  view source on GitHub ↗
(Comparable from, Comparable to)

Source from the content-addressed store, hash-verified

197 }
198
199 private static boolean areReversed(Comparable from, Comparable to) {
200 try {
201 return ScriptBytecodeAdapter.compareGreaterThan(from, to);
202 } catch (IllegalArgumentException iae) {
203 throw new IllegalArgumentException("Unable to create range due to incompatible types: " + from.getClass().getSimpleName() + ".." + to.getClass().getSimpleName() + " (possible missing brackets around range?)", iae);
204 }
205 }
206
207 /**
208 * {@inheritDoc}

Callers 1

ObjectRangeMethod · 0.95

Calls 2

compareGreaterThanMethod · 0.95
getClassMethod · 0.80

Tested by

no test coverage detected