public class FragmentedRangeBigInteger extends LinkedList<RangeBigInteger>
modCount| Constructor and Description |
|---|
FragmentedRangeBigInteger()
Constructor.
|
FragmentedRangeBigInteger(RangeBigInteger r)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRange(BigInteger start,
BigInteger end)
Add the given range.
|
void |
addRange(RangeBigInteger r) |
void |
addRanges(Collection<RangeBigInteger> ranges)
Add the given ranges.
|
void |
addValue(BigInteger value)
Add a single value.
|
boolean |
containsRange(BigInteger min,
BigInteger max)
Return true if this fragmented data contains the given range of offset.
|
boolean |
containsValue(BigInteger val)
Return true if this fragmented data contains the given offset.
|
boolean |
containsValue(long val)
Return true if this fragmented data contains the given offset.
|
FragmentedRangeBigInteger |
copy()
Create a copy of this instance.
|
BigInteger |
getMax()
Return the maximum value.
|
BigInteger |
getMin()
Return the minimum value.
|
static FragmentedRangeBigInteger |
intersect(FragmentedRangeBigInteger list1,
FragmentedRangeBigInteger list2)
Return the intersection between the 2 fragmented data.
|
String |
toString() |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic FragmentedRangeBigInteger()
public FragmentedRangeBigInteger(RangeBigInteger r)
public static FragmentedRangeBigInteger intersect(FragmentedRangeBigInteger list1, FragmentedRangeBigInteger list2)
public FragmentedRangeBigInteger copy()
public void addRange(RangeBigInteger r)
public void addRange(BigInteger start, BigInteger end)
public void addRanges(Collection<RangeBigInteger> ranges)
public void addValue(BigInteger value)
public boolean containsValue(long val)
public boolean containsValue(BigInteger val)
public boolean containsRange(BigInteger min, BigInteger max)
public BigInteger getMin()
public BigInteger getMax()
public String toString()
toString in class AbstractCollection<RangeBigInteger>Copyright © 2017. All rights reserved.