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

Method ceiling

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

Source from the content-addressed store, hash-verified

905 }
906
907 @Nullable
908 private AvlNode<E> ceiling(Comparator<? super E> comparator, E e) {
909 int cmp = comparator.compare(e, elem);
910 if (cmp < 0) {
911 return (left == null) ? this : MoreObjects.firstNonNull(left.ceiling(comparator, e), this);
912 } else if (cmp == 0) {
913 return this;
914 } else {
915 return (right == null) ? null : right.ceiling(comparator, e);
916 }
917 }
918
919 @Nullable
920 private AvlNode<E> floor(Comparator<? super E> comparator, E e) {

Callers 1

firstNodeMethod · 0.45

Calls 2

firstNonNullMethod · 0.95
compareMethod · 0.45

Tested by

no test coverage detected