Class Byte2FloatFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2FloatFunction
it.unimi.dsi.fastutil.bytes.Byte2FloatFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2FloatFunction, it.unimi.dsi.fastutil.Function<Byte,Float>, Serializable, Function<Byte,Float>, IntToDoubleFunction
Direct Known Subclasses:
Byte2FloatMaps.UnmodifiableMap
Enclosing class:
Byte2FloatFunctions

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

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
     

    Fields inherited from class it.unimi.dsi.fastutil.bytes.AbstractByte2FloatFunction

    defRetValue
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
     
    boolean
    containsKey(byte k)
     
    float
     
    void
    defaultReturnValue(float defRetValue)
     
    boolean
     
    float
    get(byte k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
    getOrDefault(byte k, float defaultValue)
     
    getOrDefault(Object k, Float defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    float
    put(byte k, float v)
     
    put(Byte k, Float v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
    remove(byte 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.bytes.Byte2FloatFunction

    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
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.bytes.Byte2FloatFunction function
  • Constructor Details

    • UnmodifiableFunction

      protected UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2FloatFunction f)
  • Method Details

    • size

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

      public float defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
      Overrides:
      defaultReturnValue in class AbstractByte2FloatFunction
    • defaultReturnValue

      public void defaultReturnValue(float defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
      Overrides:
      defaultReturnValue in class AbstractByte2FloatFunction
    • containsKey

      public boolean containsKey(byte k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
    • put

      public float put(byte k, float v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
    • get

      public float get(byte k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
    • getOrDefault

      public float getOrDefault(byte k, float defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
    • remove

      public float remove(byte k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.bytes.Byte2FloatFunction
    • clear

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

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