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

Method reverse

output/java_guava/1.4.17/GeneralRange.java:247–262  ·  view source on GitHub ↗

Returns the same range relative to the reversed comparator.

()

Source from the content-addressed store, hash-verified

245 */
246
247 GeneralRange<T> reverse() {
248 GeneralRange<T> result = reverse;
249 if (result == null) {
250 result = new GeneralRange<T>(
251 Ordering.from(comparator).reverse(),
252 hasUpperBound,
253 getUpperEndpoint(),
254 getUpperBoundType(),
255 hasLowerBound,
256 getLowerEndpoint(),
257 getLowerBoundType());
258 result.reverse = this;
259 return this.reverse = result;
260 }
261 return result;
262 }
263
264 @Override
265 public String toString() {

Callers

nothing calls this directly

Calls 5

fromMethod · 0.95
getUpperEndpointMethod · 0.95
getUpperBoundTypeMethod · 0.95
getLowerEndpointMethod · 0.95
getLowerBoundTypeMethod · 0.95

Tested by

no test coverage detected