Class Long2FloatFunctions.EmptyFunction

java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLong2FloatFunction
it.unimi.dsi.fastutil.longs.Long2FloatFunctions.EmptyFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Long,Float>, it.unimi.dsi.fastutil.longs.Long2FloatFunction, Serializable, Cloneable, Function<Long,Float>, LongToDoubleFunction
Direct Known Subclasses:
Long2FloatMaps.EmptyMap
Enclosing class:
Long2FloatFunctions

public static class Long2FloatFunctions.EmptyFunction extends AbstractLong2FloatFunction implements Serializable, Cloneable
An immutable class representing an empty type-specific function.

This class may be useful to implement your own in case you subclass a type-specific function.

See Also:
  • Field Summary

    Fields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2FloatFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    boolean
    containsKey(long k)
     
    float
     
    void
    defaultReturnValue(float defRetValue)
     
    boolean
     
    float
    get(long k)
     
    float
    getOrDefault(long k, float defaultValue)
     
    int
     
    int
     
     

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.Function

    apply

    Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2FloatFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, get, getOrDefault, put, put, remove, remove
  • Constructor Details

    • EmptyFunction

      protected EmptyFunction()
  • Method Details

    • get

      public float get(long k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.longs.Long2FloatFunction
    • getOrDefault

      public float getOrDefault(long k, float defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.longs.Long2FloatFunction
    • containsKey

      public boolean containsKey(long k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.longs.Long2FloatFunction
    • defaultReturnValue

      public float defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.longs.Long2FloatFunction
      Overrides:
      defaultReturnValue in class AbstractLong2FloatFunction
    • defaultReturnValue

      public void defaultReturnValue(float defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.longs.Long2FloatFunction
      Overrides:
      defaultReturnValue in class AbstractLong2FloatFunction
    • size

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

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

      public Object clone()
      Overrides:
      clone in class Object
    • 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