public class DiskRangeList extends DiskRange
Modifier and Type | Class and Description |
---|---|
static class |
DiskRangeList.CreateHelper |
static class |
DiskRangeList.MutateHelper
List in-place mutation helper - a bogus first element that is inserted before list head,
and thus remains constant even if head is replaced with some new range via in-place list
mutation.
|
Modifier and Type | Field and Description |
---|---|
DiskRangeList |
next |
DiskRangeList |
prev |
Constructor and Description |
---|
DiskRangeList(long offset,
long end) |
Modifier and Type | Method and Description |
---|---|
long |
getTotalLength() |
boolean |
hasContiguousNext() |
DiskRangeList |
insertAfter(DiskRangeList other)
Inserts an element after current in the list.
|
DiskRangeList |
insertPartAfter(DiskRangeList other)
Inserts an intersecting range after current in the list and adjusts offset accordingly.
|
DiskRangeList |
insertPartBefore(DiskRangeList other)
Inserts an intersecting range before current in the list and adjusts offset accordingly.
|
int |
listSize() |
DiskRangeList[] |
listToArray() |
void |
removeAfter()
Removes an element after current from the list.
|
void |
removeSelf()
Removes the current element from the list.
|
DiskRangeList |
replaceSelfWith(DiskRangeList other)
Replaces this element with another in the list; returns the new element.
|
DiskRangeList |
split(long cOffset)
Splits current element in the list, using DiskRange::slice
|
public DiskRangeList prev
public DiskRangeList next
public DiskRangeList replaceSelfWith(DiskRangeList other)
public DiskRangeList insertPartBefore(DiskRangeList other)
public DiskRangeList insertAfter(DiskRangeList other)
public DiskRangeList insertPartAfter(DiskRangeList other)
public void removeAfter()
public void removeSelf()
public final DiskRangeList split(long cOffset)
public boolean hasContiguousNext()
public int listSize()
public long getTotalLength()
public DiskRangeList[] listToArray()
Copyright © 2016 The Apache Software Foundation. All rights reserved.