gnu.inet.encoding

Class RangeSet.Range

Enclosing Class:
RangeSet
Implemented Interfaces:
Comparable

public static final class RangeSet.Range
extends java.lang.Object
implements Comparable

Constructor Summary

Range(RangeSet.Range firstRange, RangeSet.Range lastRange)
Range(int single)
Range(int first, int last)

Method Summary

@Override
String toString()
@Override
boolean equals(Object o)
int
compareTo(RangeSet.Range other)
boolean
contains(RangeSet.Range other)
Checks if this range completely can contain the other range.
boolean
contains(int i)
@Override
int hashCode()

Constructor Details

Range

public Range(RangeSet.Range firstRange,
             RangeSet.Range lastRange)

Range

public Range(int single)

Range

public Range(int first,
             int last)

Method Details

String toString

public @Override String toString()

boolean equals

public @Override boolean equals(Object o)

compareTo

public int compareTo(RangeSet.Range other)

contains

public boolean contains(RangeSet.Range other)
Checks if this range completely can contain the other range.
Parameters:
other - other range to verify
Returns:
true if other completely contained by this, otherwise false

contains

public boolean contains(int i)

int hashCode

public @Override int hashCode()