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

Method singleton

output/java_guava/1.4.18/Range.java:329–331  ·  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

327
328
329 public static <C extends Comparable<?>> Range<C> singleton(C value) {
330 return closed(value, value);
331 }
332
333 /**
334 * Returns the minimal range that

Callers 1

asSetMethod · 0.45

Calls 1

closedMethod · 0.95

Tested by

no test coverage detected