Package com.carrotsearch.hppc
Interface ShortLookupContainer
- All Superinterfaces:
Iterable<ShortCursor>,ShortContainer
- All Known Implementing Classes:
ShortByteHashMap.KeysContainer,ShortCharHashMap.KeysContainer,ShortDoubleHashMap.KeysContainer,ShortFloatHashMap.KeysContainer,ShortHashSet,ShortIntHashMap.KeysContainer,ShortLongHashMap.KeysContainer,ShortObjectHashMap.KeysContainer,ShortScatterSet,ShortShortHashMap.KeysContainer
@Generated(date="2024-05-16T08:18:11+0000",
value="KTypeLookupContainer.java")
public interface ShortLookupContainer
extends ShortContainer
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 TypeMethodDescriptionbooleancontains(short e) Lookup a given element in the container.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
contains
boolean contains(short e) Description copied from interface:ShortContainerLookup a given element in the container. This operation has no speed guarantees (may be linear with respect to the size of this container).- Specified by:
containsin interfaceShortContainer- Returns:
- Returns
trueif this container has an element equal toe.
-