Class Float2BooleanFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloat2BooleanFunction
it.unimi.dsi.fastutil.floats.Float2BooleanFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2BooleanFunction, it.unimi.dsi.fastutil.Function<Float,Boolean>, Serializable, DoublePredicate, Function<Float,Boolean>
Direct Known Subclasses:
Float2BooleanMaps.UnmodifiableMap
Enclosing class:
Float2BooleanFunctions

public static class Float2BooleanFunctions.UnmodifiableFunction extends AbstractFloat2BooleanFunction implements Serializable
An unmodifiable wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.floats.Float2BooleanFunction
     

    Fields inherited from class it.unimi.dsi.fastutil.floats.AbstractFloat2BooleanFunction

    defRetValue
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
     
    boolean
    containsKey(float k)
     
    boolean
     
    void
    defaultReturnValue(boolean defRetValue)
     
    boolean
     
    boolean
    get(float k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    getOrDefault(float k, boolean defaultValue)
     
    getOrDefault(Object k, Boolean defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    boolean
    put(float k, boolean v)
     
    put(Float k, Boolean v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    remove(float 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 java.util.function.DoublePredicate

    and, negate, or

    Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, test

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

    apply
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.floats.Float2BooleanFunction function
  • Constructor Details

    • UnmodifiableFunction

      protected UnmodifiableFunction(it.unimi.dsi.fastutil.floats.Float2BooleanFunction f)
  • Method Details

    • size

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

      public boolean defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
      Overrides:
      defaultReturnValue in class AbstractFloat2BooleanFunction
    • defaultReturnValue

      public void defaultReturnValue(boolean defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
      Overrides:
      defaultReturnValue in class AbstractFloat2BooleanFunction
    • containsKey

      public boolean containsKey(float k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
    • put

      public boolean put(float k, boolean v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
    • get

      public boolean get(float k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
    • getOrDefault

      public boolean getOrDefault(float k, boolean defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
    • remove

      public boolean remove(float k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.Float2BooleanFunction
    • clear

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

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

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

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

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