Class Reference2FloatFunctions.UnmodifiableFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2FloatFunction<K>
it.unimi.dsi.fastutil.objects.Reference2FloatFunctions.UnmodifiableFunction<K>
All Implemented Interfaces:
Function<K,​Float>, Reference2FloatFunction<K>, Serializable, Function<K,​Float>, ToDoubleFunction<K>
Direct Known Subclasses:
Reference2FloatMaps.UnmodifiableMap
Enclosing class:
Reference2FloatFunctions

public static class Reference2FloatFunctions.UnmodifiableFunction<K>
extends AbstractReference2FloatFunction<K>
implements Serializable
An unmodifiable wrapper class for functions.
See Also:
Serialized Form
  • Method Summary

    Modifier and Type Method Description
    void clear()
    Removes all associations from this function (optional operation).
    boolean containsKey​(Object k)
    Returns true if this function contains a mapping for the specified key.
    float defaultReturnValue()
    Gets the default return value.
    void defaultReturnValue​(float defRetValue)
    Sets the default return value (optional operation).
    boolean equals​(Object o)  
    Float get​(Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float getFloat​(Object k)
    Returns the value to which the given key is mapped.
    int hashCode()  
    float put​(K k, float v)
    Adds a pair to the map (optional operation).
    Float put​(K k, Float v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    Float remove​(Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float removeFloat​(Object k)
    Removes the mapping with the given key (optional operation).
    int size()
    Returns the intended number of keys in this function, or -1 if no such number exists.
    String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.Function

    apply

    Methods inherited from interface java.util.function.Function

    andThen, compose

    Methods inherited from interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction

    applyAsDouble