Class Reference2IntFunctions.PrimitiveFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2IntFunctions.PrimitiveFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,​java.lang.Integer>, it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>, java.util.function.Function<K,​java.lang.Integer>, java.util.function.ToIntFunction<K>
Enclosing class:
Reference2IntFunctions

public static class Reference2IntFunctions.PrimitiveFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
  • Method Summary

    Modifier and Type Method Description
    boolean containsKey​(java.lang.Object key)  
    java.lang.Integer get​(java.lang.Object key)
    Deprecated.
    int getInt​(java.lang.Object key)  
    int getOrDefault​(java.lang.Object key, int defaultValue)  
    java.lang.Integer getOrDefault​(java.lang.Object key, java.lang.Integer defaultValue)
    Deprecated.
    java.lang.Integer put​(K key, java.lang.Integer value)
    Deprecated.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    apply, clear, size

    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, defaultReturnValue, defaultReturnValue, put, remove, removeInt
  • Method Details

    • containsKey

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

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

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

      @Deprecated public java.lang.Integer get​(java.lang.Object key)
      Deprecated.
      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 key, java.lang.Integer defaultValue)
      Deprecated.
      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>
    • put

      @Deprecated public java.lang.Integer put​(K key, java.lang.Integer value)
      Deprecated.
      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>