/** Returns the value to which the specified key is mapped, or {@code null} * if this map contains no mapping for the key. * <p>More formally, if this map contains a mapping from a key {@code k} to * a value {@code v} such that {@code key.equals(k)}, then this method * returns {@code v}; otherwise it returns {@code null}. (There can be at * most one such mapping.) * @throws NullPointerException if the specified key is null */ // Never returns a Prime nor a Tombstone. @Override public TypeV get( Object key ) { final int fullhash= hash (key); // throws NullPointerException if key is null final Object V = get_impl(this,_kvs,key,fullhash); assert !(V instanceof Prime); // Never return a Prime return (TypeV)V; }
/** Returns the value to which the specified key is mapped, or {@code null} * if this map contains no mapping for the key. * <p>More formally, if this map contains a mapping from a key {@code k} to * a value {@code v} such that {@code key.equals(k)}, then this method * returns {@code v}; otherwise it returns {@code null}. (There can be at * most one such mapping.) * @throws NullPointerException if the specified key is null */ // Never returns a Prime nor a Tombstone. @Override public TypeV get( Object key ) { final int fullhash= hash (key); // throws NullPointerException if key is null final Object V = get_impl(this,_kvs,key,fullhash); assert !(V instanceof Prime); // Never return a Prime return (TypeV)V; }
/** Returns the value to which the specified key is mapped, or {@code null} * if this map contains no mapping for the key. * <p>More formally, if this map contains a mapping from a key {@code k} to * a value {@code v} such that {@code key.equals(k)}, then this method * returns {@code v}; otherwise it returns {@code null}. (There can be at * most one such mapping.) * @throws NullPointerException if the specified key is null */ // Never returns a Prime nor a Tombstone. @Override public TypeV get( Object key ) { final int fullhash= hash (key); // throws NullPointerException if key is null final Object V = get_impl(this,_kvs,key,fullhash); assert !(V instanceof Prime); // Never return a Prime return (TypeV)V; }