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

Method wrapEntry

output/java_guava/1.4.17/TreeMultiset.java:348–365  ·  view source on GitHub ↗
(final AvlNode<E> baseEntry)

Source from the content-addressed store, hash-verified

346 }
347
348 private Entry<E> wrapEntry(final AvlNode<E> baseEntry) {
349 return new Multisets.AbstractEntry<E>() {
350 @Override
351 public E getElement() {
352 return baseEntry.getElement();
353 }
354
355 @Override
356 public int getCount() {
357 int result = baseEntry.getCount();
358 if (result == 0) {
359 return count(getElement());
360 } else {
361 return result;
362 }
363 }
364 };
365 }
366
367 /**
368 * Returns the first node in the tree that is in range.

Callers 1

nextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected