Class Float2LongFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloat2LongFunction
it.unimi.dsi.fastutil.floats.Float2LongFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2LongFunction, it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>, java.io.Serializable, java.util.function.DoubleToLongFunction, java.util.function.Function<java.lang.Float,​java.lang.Long>
Direct Known Subclasses:
Float2LongMaps.UnmodifiableMap
Enclosing class:
Float2LongFunctions

public static class Float2LongFunctions.UnmodifiableFunction
extends AbstractFloat2LongFunction
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​(float k)  
    long defaultReturnValue()  
    void defaultReturnValue​(long defRetValue)  
    boolean equals​(java.lang.Object o)  
    long get​(float k)  
    java.lang.Long get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long getOrDefault​(float 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​(float k, long v)  
    java.lang.Long put​(java.lang.Float k, java.lang.Long v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long remove​(float k)  
    java.lang.Long remove​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    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.floats.Float2LongFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey

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

    apply
  • Method Details

    • size

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

      public long defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Overrides:
      defaultReturnValue in class AbstractFloat2LongFunction
    • defaultReturnValue

      public void defaultReturnValue​(long defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Overrides:
      defaultReturnValue in class AbstractFloat2LongFunction
    • containsKey

      public boolean containsKey​(float k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • put

      public long put​(float k, long v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • get

      public long get​(float k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • getOrDefault

      public long getOrDefault​(float k, long defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • remove

      public long remove​(float k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • clear

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

      @Deprecated public java.lang.Long put​(java.lang.Float k, java.lang.Long v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • 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.floats.Float2LongFunction
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • 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.floats.Float2LongFunction
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • 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.floats.Float2LongFunction
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • 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