Top Description Methods
com.carrotsearch.hppc

public Interface LongLookupContainer

extends LongContainer
Known Direct Implementers
com.carrotsearch.hppc.LongObjectHashMap.KeysContainer, com.carrotsearch.hppc.LongShortHashMap.KeysContainer, com.carrotsearch.hppc.LongByteHashMap.KeysContainer, com.carrotsearch.hppc.LongCharHashMap.KeysContainer, com.carrotsearch.hppc.LongDoubleHashMap.KeysContainer, com.carrotsearch.hppc.LongFloatHashMap.KeysContainer, com.carrotsearch.hppc.LongHashSet, com.carrotsearch.hppc.LongIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationLongShortHashMap.KeysContainer, com.carrotsearch.hppc.LongLongHashMap.KeysContainer
Annotations
@Generated:KTypeLookupContainer.java
date:2024-06-04T15:20:17+0200

Marker interface for containers that can check if they contain a given object in at least time O(log n) and ideally in amortized constant time O(1).

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(long e)

Redeclares com.carrotsearch.hppc.LongContainer.contains.

Lookup a given element in the container.

Inherited from com.carrotsearch.hppc.LongContainer:
forEachforEachisEmptyiteratorsizetoArray

Method Detail

containsback to summary
public boolean contains(long e)

Redeclares com.carrotsearch.hppc.LongContainer.contains.

Doc from com.carrotsearch.hppc.LongContainer.contains.

Lookup a given element in the container. This operation has no speed guarantees (may be linear with respect to the size of this container).

Returns:boolean

Returns true if this container has an element equal to e.