com.carrotsearch.hppc
Interface LongLookupContainer

All Superinterfaces:
java.lang.Iterable<LongCursor>, LongContainer
All Known Implementing Classes:
LongByteOpenHashMap.KeysContainer, LongCharOpenHashMap.KeysContainer, LongDoubleOpenHashMap.KeysContainer, LongFloatOpenHashMap.KeysContainer, LongIntOpenHashMap.KeysContainer, LongLongOpenHashMap.KeysContainer, LongObjectOpenHashMap.KeysContainer, LongOpenHashSet, LongShortOpenHashMap.KeysContainer

@Generated(date="2011-11-28T23:36:04+0000",
           value="HPPC generated from: LongLookupContainer.java")
public interface LongLookupContainer
extends LongContainer

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

Method Detail

contains

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


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