na.java 2.01 KB
import com.google.common.collect.Range;
import com.google.common.collect.RangeSet;
import java.util.Iterator;
import java.util.Set;
import javax.annotation.Nullable;

public abstract class na<C extends Comparable>
  implements RangeSet<C>
{
  public void add(Range<C> paramRange)
  {
    throw new UnsupportedOperationException();
  }
  
  public void addAll(RangeSet<C> paramRangeSet)
  {
    paramRangeSet = paramRangeSet.asRanges().iterator();
    while (paramRangeSet.hasNext()) {
      add((Range)paramRangeSet.next());
    }
  }
  
  public void clear()
  {
    remove(Range.all());
  }
  
  public boolean contains(C paramC)
  {
    return rangeContaining(paramC) != null;
  }
  
  public abstract boolean encloses(Range<C> paramRange);
  
  public boolean enclosesAll(RangeSet<C> paramRangeSet)
  {
    paramRangeSet = paramRangeSet.asRanges().iterator();
    while (paramRangeSet.hasNext()) {
      if (!encloses((Range)paramRangeSet.next())) {
        return false;
      }
    }
    return true;
  }
  
  public boolean equals(@Nullable Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if ((paramObject instanceof RangeSet))
    {
      paramObject = (RangeSet)paramObject;
      return asRanges().equals(((RangeSet)paramObject).asRanges());
    }
    return false;
  }
  
  public final int hashCode()
  {
    return asRanges().hashCode();
  }
  
  public boolean isEmpty()
  {
    return asRanges().isEmpty();
  }
  
  public abstract Range<C> rangeContaining(C paramC);
  
  public void remove(Range<C> paramRange)
  {
    throw new UnsupportedOperationException();
  }
  
  public void removeAll(RangeSet<C> paramRangeSet)
  {
    paramRangeSet = paramRangeSet.asRanges().iterator();
    while (paramRangeSet.hasNext()) {
      remove((Range)paramRangeSet.next());
    }
  }
  
  public final String toString()
  {
    return asRanges().toString();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/na.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */