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

Method ceiling

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

Source from the content-addressed store, hash-verified

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