Class Reference2LongFunctions.UnmodifiableFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2LongFunction<K>
it.unimi.dsi.fastutil.objects.Reference2LongFunctions.UnmodifiableFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,​java.lang.Long>, it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>, java.io.Serializable, java.util.function.Function<K,​java.lang.Long>, java.util.function.ToLongFunction<K>
Direct Known Subclasses:
Reference2LongMaps.UnmodifiableMap
Enclosing class:
Reference2LongFunctions

public static class Reference2LongFunctions.UnmodifiableFunction<K>
extends AbstractReference2LongFunction<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)  
    long defaultReturnValue()  
    void defaultReturnValue​(long defRetValue)  
    boolean equals​(java.lang.Object o)  
    java.lang.Long get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long getLong​(java.lang.Object k)  
    long getOrDefault​(java.lang.Object k, long defaultValue)  
    java.lang.Long getOrDefault​(java.lang.Object k, java.lang.Long defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int hashCode()  
    long put​(K k, long v)  
    java.lang.Long put​(K k, java.lang.Long v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    java.lang.Long remove​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long removeLong​(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.Reference2LongFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, 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.Long>
    • defaultReturnValue

      public long defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
      Overrides:
      defaultReturnValue in class AbstractReference2LongFunction<K>
    • defaultReturnValue

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

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

      public long put​(K k, long v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
    • getLong

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

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

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

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

      @Deprecated public java.lang.Long put​(K k, java.lang.Long v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      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>
    • get

      @Deprecated public java.lang.Long 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.Long>
      Specified by:
      get in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
    • getOrDefault

      @Deprecated public java.lang.Long getOrDefault​(java.lang.Object k, java.lang.Long defaultValue)
      Deprecated.
      Please use the corresponding type-specific method instead.
      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>
    • remove

      @Deprecated public java.lang.Long 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.Long>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<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