public class AdjacencyList extends Object
| Constructor and Description |
|---|
AdjacencyList(Sequence array,
Bitmap bitmap) |
| Modifier and Type | Method and Description |
|---|---|
long |
binSearch(long element,
long begin,
long end) |
long |
countItemsY(long x)
Count the number of items in list x
|
long |
countListsX()
Count how many lists there are
|
void |
dump() |
long |
find(long x)
Find pos of the list x
|
long |
find(long x,
long y)
Find element y, in the list x
|
long |
findListIndex(long globalpos)
Find to which list x does the element at globalpos belongs
|
long |
findNext(long pos) |
long |
findNextAppearance(long oldpos,
long element)
Finds the next appearance of the element "element" starting at global pos: "oldpos" inclusive.
|
long |
findPreviousAppearance(long old,
long element)
Finds the previous appearance of the element "element" starting at global pos: "oldpos" inclusive.
|
long |
get(long pos) |
long |
getNumberOfElements() |
long |
last(long x)
Find the last pos of the list x
|
long |
linSearch(long element,
long begin,
long end) |
long |
search(long element,
long begin,
long end) |
public final long find(long x)
x - public final long findNext(long pos)
public final long last(long x)
x - public final long find(long x,
long y)
throws NotFoundException
x - y - NotFoundExceptionpublic final long findListIndex(long globalpos)
globalpos - public final long countListsX()
public long countItemsY(long x)
x - public long search(long element,
long begin,
long end)
throws NotFoundException
NotFoundExceptionpublic long binSearch(long element,
long begin,
long end)
throws NotFoundException
NotFoundExceptionpublic long linSearch(long element,
long begin,
long end)
throws NotFoundException
NotFoundExceptionpublic final long get(long pos)
public final long getNumberOfElements()
public long findNextAppearance(long oldpos,
long element)
oldpos - Old global position to start searching.element - Element to be searchedpublic long findPreviousAppearance(long old,
long element)
oldpos - Old global position to start searching.element - Element to be searchedpublic void dump()
Copyright © 2018 DataWeb Research. All rights reserved.