com.carrotsearch.hppc.ObjectIndexedContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package com.carrotsearch.hppc;
import java.util.RandomAccess;
/**
* An indexed container provides random access to elements based on an
* index
. Indexes are zero-based.
*/
@javax.annotation.Generated(
date = "2015-05-07T09:33:04+0200",
value = "KTypeIndexedContainer.java")
public interface ObjectIndexedContainer extends ObjectCollection, RandomAccess {
/**
* Removes the first element that equals e1
, returning its
* deleted position or -1
if the element was not found.
*/
public int removeFirst(KType e1);
/**
* Removes the last element that equals e1
, returning its deleted
* position or -1
if the element was not found.
*/
public int removeLast(KType 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.
*/
public int indexOf(KType 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.
*/
public int lastIndexOf(KType e1);
/**
* Adds an element to the end of this container (the last index is incremented
* by one).
*/
public void add(KType e1);
/**
* Inserts the specified element at the specified position in this list.
*
* @param index
* The index at which the element should be inserted, shifting any
* existing and subsequent elements to the right.
*/
public void insert(int index, KType e1);
/**
* Replaces the element at the specified position in this list with the
* specified element.
*
* @return Returns the previous value in the list.
*/
public KType set(int index, KType e1);
/**
* @return Returns the element at index index
from the list.
*/
public KType get(int index);
/**
* Removes the element at the specified position in this container and returns
* it.
*
* @see #removeFirst
* @see #removeLast
* @see #removeAll
*/
public KType remove(int index);
/**
* Removes from this container all of the elements with indexes between
* fromIndex
, inclusive, and toIndex
, exclusive.
*/
public void removeRange(int fromIndex, int toIndex);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy