@Generated(date="2015-05-05T11:00:03+0200", value="KTypeIndexedContainer.java") public interface LongIndexedContainer extends LongCollection, java.util.RandomAccess
index
. Indexes are zero-based.Modifier and Type | Method and Description |
---|---|
void |
add(long e1)
Adds an element to the end of this container (the last index is incremented
by one).
|
long |
get(int index) |
int |
indexOf(long e1)
Returns the index of the first occurrence of the specified element in this
list, or -1 if this list does not contain the element.
|
void |
insert(int index,
long e1)
Inserts the specified element at the specified position in this list.
|
int |
lastIndexOf(long e1)
Returns the index of the last occurrence of the specified element in this
list, or -1 if this list does not contain the element.
|
long |
remove(int index)
Removes the element at the specified position in this container and returns
it.
|
int |
removeFirst(long e1)
Removes the first element that equals
e1 , returning its
deleted position or -1 if the element was not found. |
int |
removeLast(long e1)
Removes the last element that equals
e1 , returning its deleted
position or -1 if the element was not found. |
void |
removeRange(int fromIndex,
int toIndex)
Removes from this container all of the elements with indexes between
fromIndex , inclusive, and toIndex , exclusive. |
long |
set(int index,
long e1)
Replaces the element at the specified position in this list with the
specified element.
|
clear, release, removeAll, removeAll, removeAll, retainAll, retainAll
int removeFirst(long e1)
e1
, returning its
deleted position or -1
if the element was not found.int removeLast(long e1)
e1
, returning its deleted
position or -1
if the element was not found.int indexOf(long e1)
int lastIndexOf(long e1)
void add(long e1)
void insert(int index, long e1)
index
- The index at which the element should be inserted, shifting any
existing and subsequent elements to the right.long set(int index, long e1)
long get(int index)
index
from the list.long remove(int index)
void removeRange(int fromIndex, int toIndex)
fromIndex
, inclusive, and toIndex
, exclusive.Copyright © 2015 Carrot Search s.c.. All Rights Reserved.