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

Method floor

output/java_guava/1.4.17/TreeMultiset.java:919–929  ·  view source on GitHub ↗
(Comparator<? super E> comparator, E e)

Source from the content-addressed store, hash-verified

917 }
918
919 @Nullable
920 private AvlNode<E> floor(Comparator<? super E> comparator, E e) {
921 int cmp = comparator.compare(e, elem);
922 if (cmp > 0) {
923 return (right == null) ? this : MoreObjects.firstNonNull(right.floor(comparator, e), this);
924 } else if (cmp == 0) {
925 return this;
926 } else {
927 return (left == null) ? null : left.floor(comparator, e);
928 }
929 }
930
931 @Override
932 public E getElement() {

Callers 1

lastNodeMethod · 0.45

Calls 2

firstNonNullMethod · 0.95
compareMethod · 0.45

Tested by

no test coverage detected