Rabbit-R1/switch port/java/sources/com/google/common/collect/RangeSet.java
2024-05-21 17:08:36 -04:00

56 lines
1.1 KiB
Java

package com.google.common.collect;
import com.google.errorprone.annotations.DoNotMock;
import java.lang.Comparable;
import java.util.Set;
import javax.annotation.CheckForNull;
@DoNotMock("Use ImmutableRangeSet or TreeRangeSet")
@ElementTypesAreNonnullByDefault
/* loaded from: classes3.dex */
public interface RangeSet<C extends Comparable> {
void add(Range<C> range);
void addAll(RangeSet<C> rangeSet);
void addAll(Iterable<Range<C>> iterable);
Set<Range<C>> asDescendingSetOfRanges();
Set<Range<C>> asRanges();
void clear();
RangeSet<C> complement();
boolean contains(C c);
boolean encloses(Range<C> range);
boolean enclosesAll(RangeSet<C> rangeSet);
boolean enclosesAll(Iterable<Range<C>> iterable);
boolean equals(@CheckForNull Object obj);
int hashCode();
boolean intersects(Range<C> range);
boolean isEmpty();
@CheckForNull
Range<C> rangeContaining(C c);
void remove(Range<C> range);
void removeAll(RangeSet<C> rangeSet);
void removeAll(Iterable<Range<C>> iterable);
Range<C> span();
RangeSet<C> subRangeSet(Range<C> range);
String toString();
}