Class Object2FloatFunctions.UnmodifiableFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction<K>
it.unimi.dsi.fastutil.objects.Object2FloatFunctions.UnmodifiableFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Float>, it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>, Serializable, Function<K,Float>, ToDoubleFunction<K>
Direct Known Subclasses:
Object2FloatMaps.UnmodifiableMap
Enclosing class:
Object2FloatFunctions

public static class Object2FloatFunctions.UnmodifiableFunction<K> extends AbstractObject2FloatFunction<K> implements Serializable
An unmodifiable wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.Object2FloatFunction<? extends K>
     

    Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<? extends K> f)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.objects.Object2FloatFunction<? extends K> function
  • Constructor Details

    • UnmodifiableFunction

      protected UnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<? extends K> f)
  • Method Details

    • size

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

      public float defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
      Overrides:
      defaultReturnValue in class AbstractObject2FloatFunction<K>
    • defaultReturnValue

      public void defaultReturnValue(float defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
      Overrides:
      defaultReturnValue in class AbstractObject2FloatFunction<K>
    • containsKey

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

      public float put(K k, float v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
    • getFloat

      public float getFloat(Object k)
      Specified by:
      getFloat in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
    • getOrDefault

      public float getOrDefault(Object k, float defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
    • removeFloat

      public float removeFloat(Object k)
      Specified by:
      removeFloat in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
    • clear

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

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