com.carrotsearch.hppc
Interface ShortLookupContainer

All Superinterfaces:
java.lang.Iterable<ShortCursor>, ShortContainer
All Known Implementing Classes:
ShortByteOpenHashMap.KeysContainer, ShortCharOpenHashMap.KeysContainer, ShortDoubleOpenHashMap.KeysContainer, ShortFloatOpenHashMap.KeysContainer, ShortIntOpenHashMap.KeysContainer, ShortLongOpenHashMap.KeysContainer, ShortObjectOpenHashMap.KeysContainer, ShortOpenHashSet, ShortShortOpenHashMap.KeysContainer

@Generated(date="2011-11-28T23:36:04+0000",
           value="HPPC generated from: ShortLookupContainer.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
 boolean contains(short e)
          Lookup a given element in the container.
 
Methods inherited from interface com.carrotsearch.hppc.ShortContainer
forEach, forEach, isEmpty, iterator, size, toArray
 

Method Detail

contains

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


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