Class Float2DoubleFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloat2DoubleFunction
it.unimi.dsi.fastutil.floats.Float2DoubleFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2DoubleFunction, it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Double>, java.io.Serializable, java.util.function.DoubleUnaryOperator, java.util.function.Function<java.lang.Float,​java.lang.Double>
Direct Known Subclasses:
Float2DoubleMaps.UnmodifiableMap
Enclosing class:
Float2DoubleFunctions

public static class Float2DoubleFunctions.UnmodifiableFunction
extends AbstractFloat2DoubleFunction
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)  
    double defaultReturnValue()  
    void defaultReturnValue​(double defRetValue)  
    boolean equals​(java.lang.Object o)  
    double get​(float k)  
    java.lang.Double get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    double getOrDefault​(float k, double defaultValue)  
    java.lang.Double getOrDefault​(java.lang.Object k, java.lang.Double defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int hashCode()  
    double put​(float k, double v)  
    java.lang.Double put​(java.lang.Float k, java.lang.Double v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    double remove​(float k)  
    java.lang.Double 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 java.util.function.DoubleUnaryOperator

    andThen, compose

    Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction

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

      public double defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
      Overrides:
      defaultReturnValue in class AbstractFloat2DoubleFunction
    • defaultReturnValue

      public void defaultReturnValue​(double defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
      Overrides:
      defaultReturnValue in class AbstractFloat2DoubleFunction
    • containsKey

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

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

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

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

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

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

      @Deprecated public java.lang.Double put​(java.lang.Float k, java.lang.Double v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Double>
    • get

      @Deprecated public java.lang.Double get​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      get in interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Double>
    • getOrDefault

      @Deprecated public java.lang.Double getOrDefault​(java.lang.Object k, java.lang.Double defaultValue)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Double>
    • remove

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