Class Reference2LongFunctions.PrimitiveFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2LongFunctions.PrimitiveFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,​java.lang.Long>, it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>, java.util.function.Function<K,​java.lang.Long>, java.util.function.ToLongFunction<K>
Enclosing class:
Reference2LongFunctions

public static class Reference2LongFunctions.PrimitiveFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2LongFunction<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.Long get​(java.lang.Object key)
    Deprecated.
    long getLong​(java.lang.Object key)  
    long getOrDefault​(java.lang.Object key, long defaultValue)  
    java.lang.Long getOrDefault​(java.lang.Object key, java.lang.Long defaultValue)
    Deprecated.
    java.lang.Long put​(K key, java.lang.Long 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.Reference2LongFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, defaultReturnValue, defaultReturnValue, put, remove, removeLong
  • Method Details

    • containsKey

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

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

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

      @Deprecated public java.lang.Long get​(java.lang.Object key)
      Deprecated.
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Long>
      Specified by:
      get in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
    • getOrDefault

      @Deprecated public java.lang.Long getOrDefault​(java.lang.Object key, java.lang.Long defaultValue)
      Deprecated.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Long>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
    • put

      @Deprecated public java.lang.Long put​(K key, java.lang.Long value)
      Deprecated.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Long>
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>