Class Object2LongFunctions.PrimitiveFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Object2LongFunctions.PrimitiveFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Long>, it.unimi.dsi.fastutil.objects.Object2LongFunction<K>, Function<K,Long>, ToLongFunction<K>
Enclosing class:
Object2LongFunctions

public static class Object2LongFunctions.PrimitiveFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Object2LongFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Function<? super K,? extends Long>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PrimitiveFunction(Function<? super K,? extends Long> function)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    get(Object key)
    Deprecated.
    long
     
    long
    getOrDefault(Object key, long defaultValue)
     
    getOrDefault(Object key, Long defaultValue)
    Deprecated.
    put(K key, Long value)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, 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.Object2LongFunction

    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
  • Field Details

    • function

      protected final Function<? super K,? extends Long> function
  • Constructor Details

    • PrimitiveFunction

      protected PrimitiveFunction(Function<? super K,? extends Long> function)
  • Method Details

    • containsKey

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

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

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

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

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

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