Class Double2LongFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDouble2LongFunction
it.unimi.dsi.fastutil.doubles.Double2LongFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2LongFunction, it.unimi.dsi.fastutil.Function<Double,Long>, Serializable, DoubleToLongFunction, Function<Double,Long>
Direct Known Subclasses:
Double2LongMaps.UnmodifiableMap
Enclosing class:
Double2LongFunctions

public static class Double2LongFunctions.UnmodifiableFunction extends AbstractDouble2LongFunction 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.Double2LongFunction
     

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

    defRetValue
  • Constructor Summary

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

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

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

    • UnmodifiableFunction

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

    • size

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

      public long defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2LongFunction
      Overrides:
      defaultReturnValue in class AbstractDouble2LongFunction
    • defaultReturnValue

      public void defaultReturnValue(long defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2LongFunction
      Overrides:
      defaultReturnValue in class AbstractDouble2LongFunction
    • containsKey

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

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

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

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

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

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

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

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

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

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