Top Description Methods
com.carrotsearch.hppc

public Interface ShortLookupContainer

extends ShortContainer
Known Direct Implementers
com.carrotsearch.hppc.ShortObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortByteHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortCharHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortDoubleHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortFloatHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortIntHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortLongHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortObjectHashMap.KeysContainer, com.carrotsearch.hppc.SortedIterationShortShortHashMap.KeysContainer, com.carrotsearch.hppc.ShortShortHashMap.KeysContainer, com.carrotsearch.hppc.ShortByteHashMap.KeysContainer, com.carrotsearch.hppc.ShortCharHashMap.KeysContainer, com.carrotsearch.hppc.ShortDoubleHashMap.KeysContainer, com.carrotsearch.hppc.ShortFloatHashMap.KeysContainer, com.carrotsearch.hppc.ShortHashSet, com.carrotsearch.hppc.ShortIntHashMap.KeysContainer, com.carrotsearch.hppc.ShortLongHashMap.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(short e)

Redeclares com.carrotsearch.hppc.ShortContainer.contains.

Lookup a given element in the container.

Inherited from com.carrotsearch.hppc.ShortContainer:
forEachforEachisEmptyiteratorsizetoArray

Method Detail

containsback to summary
public boolean contains(short e)

Redeclares com.carrotsearch.hppc.ShortContainer.contains.

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