Class Object2IntFunctions.UnmodifiableFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction<K>
it.unimi.dsi.fastutil.objects.Object2IntFunctions.UnmodifiableFunction<K>
All Implemented Interfaces:
Function<K,​Integer>, Object2IntFunction<K>, Serializable, Function<K,​Integer>, ToIntFunction<K>
Direct Known Subclasses:
Object2IntMaps.UnmodifiableMap
Enclosing class:
Object2IntFunctions

public static class Object2IntFunctions.UnmodifiableFunction<K>
extends AbstractObject2IntFunction<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.
    int defaultReturnValue()
    Gets the default return value.
    void defaultReturnValue​(int defRetValue)
    Sets the default return value (optional operation).
    boolean equals​(Object o)  
    Integer get​(Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int getInt​(Object k)
    Returns the value to which the given key is mapped.
    int hashCode()  
    int put​(K k, int v)
    Adds a pair to the map (optional operation).
    Integer put​(K k, Integer v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    Integer remove​(Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int removeInt​(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.Object2IntFunction

    applyAsInt