Class Byte2DoubleFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2DoubleFunction
it.unimi.dsi.fastutil.bytes.Byte2DoubleFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction, it.unimi.dsi.fastutil.Function<Byte,Double>, Serializable, Function<Byte,Double>, IntToDoubleFunction
Direct Known Subclasses:
Byte2DoubleMaps.UnmodifiableMap
Enclosing class:
Byte2DoubleFunctions

public static class Byte2DoubleFunctions.UnmodifiableFunction extends AbstractByte2DoubleFunction 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.Byte2DoubleFunction
     

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

    defRetValue
  • Constructor Summary

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

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

    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.Byte2DoubleFunction function
  • Constructor Details

    • UnmodifiableFunction

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

    • size

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

      public double defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
      Overrides:
      defaultReturnValue in class AbstractByte2DoubleFunction
    • defaultReturnValue

      public void defaultReturnValue(double defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
      Overrides:
      defaultReturnValue in class AbstractByte2DoubleFunction
    • containsKey

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

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

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

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

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

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

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

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

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

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