Skip to content

Commit

Permalink
Making headSet(E, boolean), tailSet(E, boolean) public in GWT emulate…
Browse files Browse the repository at this point in the history
…d ImmutableSortedSet.

RELNOTES=`com.google.common.collect.ImmutableSortedSet`: Making `headSet(E, boolean)` and `tailSet(E, boolean)` methods public for GWT emulated ImmutableSortedSet.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=303959507
  • Loading branch information
ssmita authored and nick-someone committed Mar 31, 2020
1 parent 7e0fe90 commit 5f2fbf2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Expand Up @@ -543,7 +543,6 @@ public ImmutableSortedSet<E> headSet(E toElement) {
}

/** @since 12.0 */
@GwtIncompatible // NavigableSet
@Override
public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
return headSetImpl(checkNotNull(toElement), inclusive);
Expand Down Expand Up @@ -593,7 +592,6 @@ public ImmutableSortedSet<E> tailSet(E fromElement) {
}

/** @since 12.0 */
@GwtIncompatible // NavigableSet
@Override
public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
return tailSetImpl(checkNotNull(fromElement), inclusive);
Expand Down
Expand Up @@ -331,7 +331,7 @@ public E floor(E e) {
return !set.isEmpty() ? set.last() : null;
}

ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
checkNotNull(toElement);
if (inclusive) {
E tmp = higher(toElement);
Expand Down Expand Up @@ -372,7 +372,7 @@ public ImmutableSortedSet<E> tailSet(E fromElement) {
}
}

ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
checkNotNull(fromElement);
if (!inclusive) {
E tmp = higher(fromElement);
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/collect/ImmutableSortedSet.java
Expand Up @@ -618,7 +618,6 @@ public ImmutableSortedSet<E> headSet(E toElement) {
}

/** @since 12.0 */
@GwtIncompatible // NavigableSet
@Override
public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
return headSetImpl(checkNotNull(toElement), inclusive);
Expand Down Expand Up @@ -668,7 +667,6 @@ public ImmutableSortedSet<E> tailSet(E fromElement) {
}

/** @since 12.0 */
@GwtIncompatible // NavigableSet
@Override
public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
return tailSetImpl(checkNotNull(fromElement), inclusive);
Expand Down

0 comments on commit 5f2fbf2

Please sign in to comment.