Class HyperBall.AbstractDiscountFunction

  • All Implemented Interfaces:
    it.unimi.dsi.fastutil.Function<java.lang.Integer,​java.lang.Double>, it.unimi.dsi.fastutil.ints.Int2DoubleFunction, java.io.Serializable, java.util.function.Function<java.lang.Integer,​java.lang.Double>, java.util.function.IntToDoubleFunction
    Enclosing class:
    HyperBall

    public abstract static class HyperBall.AbstractDiscountFunction
    extends it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction
    An abstract discount function is a facility to implement a discount function (so that only the Int2DoubleFunction.get(int) method must be actually implemented).

    Note that by contract Int2DoubleFunction.get(int) will never be called with argument (i.e., distance) zero.

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction

        defRetValue
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(int key)  
      int size()  
      • Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction

        defaultReturnValue, defaultReturnValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface it.unimi.dsi.fastutil.Function

        apply, clear
      • Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2DoubleFunction

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

      • AbstractDiscountFunction

        public AbstractDiscountFunction()
    • Method Detail

      • size

        public int size()
      • containsKey

        public boolean containsKey​(int key)