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

Method singleton

corpus/java/training/guava/collect/Range.java:312–314  ·  view source on GitHub ↗

Returns a range that plain Range#contains(Comparable) contains only the given value. The returned range is plain BoundType#CLOSED closed on both ends. @since 14.0

(C value)

Source from the content-addressed store, hash-verified

310 * @since 14.0
311 */
312 public static <C extends Comparable<?>> Range<C> singleton(C value) {
313 return closed(value, value);
314 }
315
316 /**
317 * Returns the minimal range that

Callers 1

asSetMethod · 0.45

Calls 1

closedMethod · 0.95

Tested by

no test coverage detected