public class FragmentedRangeBigInteger extends LinkedList<RangeBigInteger>
| Modifier and Type | Class and Description |
|---|---|
static class |
FragmentedRangeBigInteger.Parser
String parser.
|
modCount| Constructor and Description |
|---|
FragmentedRangeBigInteger()
Constructor.
|
FragmentedRangeBigInteger(RangeBigInteger r)
Constructor.
|
FragmentedRangeBigInteger(String string)
Parse from string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCopy(Collection<RangeBigInteger> col)
Add the given ranges.
|
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 |
containsOneValueIn(Collection<RangeBigInteger> ranges)
Return true if this fragmented range contains at least one value of the given ranges.
|
boolean |
containsOneValueIn(RangeBigInteger range)
Return true if this fragmented range contains at least one value of the given range.
|
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.
|
BigInteger |
getTotalSize()
Return the total size, summing the ranges length.
|
static FragmentedRangeBigInteger |
intersect(FragmentedRangeBigInteger list1,
FragmentedRangeBigInteger list2)
Return the intersection between the 2 fragmented data.
|
RangeBigInteger |
removeBestRangeForSize(BigInteger size)
If a range with the exact size exists, it is returned.
|
RangeBigInteger |
removeBiggestRange()
Remove the largest range.
|
BigInteger |
removeFirstValue()
Remove and return the first value, or null if empty.
|
void |
removeRange(BigInteger start,
BigInteger end)
Remove the given range.
|
void |
removeValue(BigInteger value)
Remove a single offset.
|
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 FragmentedRangeBigInteger(String string) throws ParseException
ParseExceptionpublic 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 boolean containsOneValueIn(RangeBigInteger range)
public boolean containsOneValueIn(Collection<RangeBigInteger> ranges)
public BigInteger getMin()
public BigInteger getMax()
public RangeBigInteger removeBestRangeForSize(BigInteger size)
public RangeBigInteger removeBiggestRange()
public BigInteger removeFirstValue()
public void removeRange(BigInteger start, BigInteger end)
public void removeValue(BigInteger value)
public BigInteger getTotalSize()
public void addCopy(Collection<RangeBigInteger> col)
public String toString()
toString in class AbstractCollection<RangeBigInteger>Copyright © 2019. All rights reserved.