Method
wrapEntry
(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. |
Tested by
no test coverage detected