Class Double2IntFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDouble2IntFunction
it.unimi.dsi.fastutil.doubles.Double2IntFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2IntFunction, it.unimi.dsi.fastutil.Function<Double,Integer>, Serializable, DoubleToIntFunction, Function<Double,Integer>
Direct Known Subclasses:
Double2IntMaps.UnmodifiableMap
Enclosing class:
Double2IntFunctions

public static class Double2IntFunctions.UnmodifiableFunction extends AbstractDouble2IntFunction 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.Double2IntFunction
     

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

    defRetValue
  • Constructor Summary

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

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

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, 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.doubles.Double2IntFunction function
  • Constructor Details

    • UnmodifiableFunction

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

    • size

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

      public int defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2IntFunction
      Overrides:
      defaultReturnValue in class AbstractDouble2IntFunction
    • defaultReturnValue

      public void defaultReturnValue(int defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2IntFunction
      Overrides:
      defaultReturnValue in class AbstractDouble2IntFunction
    • containsKey

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

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

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

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

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

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

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

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

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

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