Top Description Methods
com.carrotsearch.hppc

public Interface ObjectLookupContainer<KType>

extends ObjectContainer<KType>
Known Direct Implementers
com.carrotsearch.hppc.ObjectObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationObjectShortHashMap.KeysContainer, com.carrotsearch.hppc.ObjectByteHashMap.KeysContainer, com.carrotsearch.hppc.ObjectCharHashMap.KeysContainer, com.carrotsearch.hppc.ObjectShortHashMap.KeysContainer, com.carrotsearch.hppc.ObjectDoubleHashMap.KeysContainer, com.carrotsearch.hppc.ObjectFloatHashMap.KeysContainer, com.carrotsearch.hppc.ObjectHashSet, com.carrotsearch.hppc.ObjectIntHashMap.KeysContainer, com.carrotsearch.hppc.ObjectLongHashMap.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(KType e)

Redeclares com.carrotsearch.hppc.ObjectContainer.contains.

Lookup a given element in the container.

Inherited from com.carrotsearch.hppc.ObjectContainer:
forEachforEachisEmptyiteratorsizetoArraytoArray

Method Detail

containsback to summary
public boolean contains(KType e)

Redeclares com.carrotsearch.hppc.ObjectContainer.contains.

Doc from com.carrotsearch.hppc.ObjectContainer.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.