com.carrotsearch.hppc
Interface IntLookupContainer

All Superinterfaces:
IntContainer, java.lang.Iterable<IntCursor>
All Known Implementing Classes:
IntByteOpenHashMap.KeysContainer, IntCharOpenHashMap.KeysContainer, IntDoubleLinkedSet, IntDoubleOpenHashMap.KeysContainer, IntFloatOpenHashMap.KeysContainer, IntIntOpenHashMap.KeysContainer, IntLongOpenHashMap.KeysContainer, IntObjectOpenHashMap.KeysContainer, IntOpenHashSet, IntShortOpenHashMap.KeysContainer

@Generated(date="2011-07-12T16:58:49+0200",
           value="HPPC generated from: IntLookupContainer.java")
public interface IntLookupContainer
extends IntContainer

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
 boolean contains(int e)
          Lookup a given element in the container.
 
Methods inherited from interface com.carrotsearch.hppc.IntContainer
forEach, forEach, isEmpty, iterator, size, toArray
 

Method Detail

contains

boolean contains(int e)
Description copied from interface: IntContainer
Lookup 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:
contains in interface IntContainer
Returns:
Returns true if this container has an element equal to e.


Copyright © 2011 Carrot Search s.c.. All Rights Reserved.