Class Reference2IntFunctions.UnmodifiableFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2IntFunction<K>
it.unimi.dsi.fastutil.objects.Reference2IntFunctions.UnmodifiableFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>, it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>, java.io.Serializable, java.util.function.Function<K,​java.lang.Integer>, java.util.function.ToIntFunction<K>
Direct Known Subclasses:
Reference2IntMaps.UnmodifiableMap
Enclosing class:
Reference2IntFunctions

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

    Modifier and Type Method Description
    void clear()  
    boolean containsKey​(java.lang.Object k)  
    int defaultReturnValue()  
    void defaultReturnValue​(int defRetValue)  
    boolean equals​(java.lang.Object o)  
    java.lang.Integer get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int getInt​(java.lang.Object k)  
    int getOrDefault​(java.lang.Object k, int defaultValue)  
    java.lang.Integer getOrDefault​(java.lang.Object k, java.lang.Integer defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int hashCode()  
    int put​(K k, int v)  
    java.lang.Integer put​(K k, java.lang.Integer v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    java.lang.Integer remove​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int removeInt​(java.lang.Object k)  
    int size()  
    java.lang.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

    compose

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

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
    • defaultReturnValue

      public int defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
      Overrides:
      defaultReturnValue in class AbstractReference2IntFunction<K>
    • defaultReturnValue

      public void defaultReturnValue​(int defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
      Overrides:
      defaultReturnValue in class AbstractReference2IntFunction<K>
    • containsKey

      public boolean containsKey​(java.lang.Object k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
    • put

      public int put​(K k, int v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • getInt

      public int getInt​(java.lang.Object k)
      Specified by:
      getInt in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • getOrDefault

      public int getOrDefault​(java.lang.Object k, int defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • removeInt

      public int removeInt​(java.lang.Object k)
      Specified by:
      removeInt in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • clear

      public void clear()
      Specified by:
      clear in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
    • put

      @Deprecated public java.lang.Integer put​(K k, java.lang.Integer v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • get

      @Deprecated public java.lang.Integer get​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
      Specified by:
      get in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • getOrDefault

      @Deprecated public java.lang.Integer getOrDefault​(java.lang.Object k, java.lang.Integer defaultValue)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • remove

      @Deprecated public java.lang.Integer remove​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object