Class Double2FloatFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDouble2FloatFunction
it.unimi.dsi.fastutil.doubles.Double2FloatFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2FloatFunction, it.unimi.dsi.fastutil.Function<Double,Float>, Serializable, DoubleUnaryOperator, Function<Double,Float>
Direct Known Subclasses:
Double2FloatMaps.UnmodifiableMap
Enclosing class:
Double2FloatFunctions

public static class Double2FloatFunctions.UnmodifiableFunction extends AbstractDouble2FloatFunction implements Serializable
An unmodifiable wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.doubles.Double2FloatFunction
     

    Fields inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2FloatFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UnmodifiableFunction(it.unimi.dsi.fastutil.doubles.Double2FloatFunction f)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    containsKey(double k)
     
    float
     
    void
    defaultReturnValue(float defRetValue)
     
    boolean
     
    float
    get(double k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
    getOrDefault(double k, float defaultValue)
     
    getOrDefault(Object k, Float defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    float
    put(double k, float v)
     
    put(Double k, Float v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
    remove(double k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction

    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 java.util.function.DoubleUnaryOperator

    andThen, compose

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

    apply
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.doubles.Double2FloatFunction function
  • Constructor Details

    • UnmodifiableFunction

      protected UnmodifiableFunction(it.unimi.dsi.fastutil.doubles.Double2FloatFunction f)
  • Method Details

    • size

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

      public float defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction
      Overrides:
      defaultReturnValue in class AbstractDouble2FloatFunction
    • defaultReturnValue

      public void defaultReturnValue(float defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction
      Overrides:
      defaultReturnValue in class AbstractDouble2FloatFunction
    • containsKey

      public boolean containsKey(double k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction
    • put

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

      public float get(double k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction
    • getOrDefault

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

      public float remove(double k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction
    • clear

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

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

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

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

      @Deprecated public Float remove(Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.doubles.Double2FloatFunction
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<Double,Float>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object