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

Method count

output/java_guava/1.4.17/TreeMultiset.java:239–254  ·  view source on GitHub ↗
(@Nullable Object element)

Source from the content-addressed store, hash-verified

237 }
238
239 @Override
240 public int count(@Nullable Object element) {
241 try {
242 @SuppressWarnings("unchecked")
243 E e = (E) element;
244 AvlNode<E> root = rootReference.get();
245 if (!range.contains(e) || root == null) {
246 return 0;
247 }
248 return root.count(comparator(), e);
249 } catch (ClassCastException e) {
250 return 0;
251 } catch (NullPointerException e) {
252 return 0;
253 }
254 }
255
256 @CanIgnoreReturnValue
257 @Override

Callers 3

addMethod · 0.95
removeMethod · 0.95
getCountMethod · 0.95

Calls 4

getMethod · 0.65
containsMethod · 0.65
countMethod · 0.65
comparatorMethod · 0.65

Tested by

no test coverage detected