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

Method reverse

corpus/java/training/guava/collect/GeneralRange.java:258–274  ·  view source on GitHub ↗

Returns the same range relative to the reversed comparator.

()

Source from the content-addressed store, hash-verified

256 * Returns the same range relative to the reversed comparator.
257 */
258 GeneralRange<T> reverse() {
259 GeneralRange<T> result = reverse;
260 if (result == null) {
261 result =
262 new GeneralRange<T>(
263 Ordering.from(comparator).reverse(),
264 hasUpperBound,
265 getUpperEndpoint(),
266 getUpperBoundType(),
267 hasLowerBound,
268 getLowerEndpoint(),
269 getLowerBoundType());
270 result.reverse = this;
271 return this.reverse = result;
272 }
273 return result;
274 }
275
276 @Override
277 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