Package | Description |
---|---|
org.netbeans.editor |
Modifier and Type | Class and Description |
---|---|
class |
GapObjectArray
Implementation of
ObjectArray that
contains a gap which helps to speed up inserts/removals
close to the gap. |
Modifier and Type | Method and Description |
---|---|
ObjectArray |
ObjectArray.Modification.getArray() |
Modifier and Type | Method and Description |
---|---|
static int |
ObjectArrayUtilities.binarySearch(ObjectArray objectArray,
Object key)
Searches the specified object array for the specified object using the binary
search algorithm.
|
static int |
ObjectArrayUtilities.binarySearch(ObjectArray objectArray,
Object key,
Comparator c)
Perform binary search with the specified comparator.
|
static void |
ObjectArrayUtilities.copyItems(ObjectArray srcObjectArray,
int srcStartIndex,
int srcEndIndex,
Object[] dest,
int destIndex)
Copy items from the given object array into destination array.
|
static void |
ObjectArrayUtilities.copyItems(ObjectArray srcObjectArray,
Object[] dest)
Copy all items from the given object array into destination array.
|
static int |
ObjectArrayUtilities.findIndex(ObjectArray objectArray,
Object item)
Get index of the occurrence of the given item in the object array
by using binary search and scanning the adjacent items
that are equal copmared to the searched item.
|
static int |
ObjectArrayUtilities.findIndex(ObjectArray objectArray,
Object item,
Comparator c)
Get index of the occurrence of the given item in the object array
by using binary search and scanning the adjacent items
that are equal copmared to the searched item.
|
static Object[] |
ObjectArrayUtilities.toArray(ObjectArray objectArray)
Create array and fill it with all the items from the given objectArray.
|
static Object[] |
ObjectArrayUtilities.toArray(ObjectArray objectArray,
int startIndex,
int endIndex)
Create array and fill it with the items from the given objectArray.
|
Built on October 1 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.