Class Double2BooleanFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2BooleanFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2BooleanFunction, it.unimi.dsi.fastutil.Function<Double,Boolean>, Serializable, DoublePredicate, Function<Double,Boolean>
Direct Known Subclasses:
Double2BooleanMaps.SynchronizedMap
Enclosing class:
Double2BooleanFunctions

public static class Double2BooleanFunctions.SynchronizedFunction extends Object implements it.unimi.dsi.fastutil.doubles.Double2BooleanFunction, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f, Object sync)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Please use the corresponding type-specific method instead.
    void
     
    boolean
    containsKey(double k)
     
    boolean
    Deprecated.
    boolean
     
    void
    defaultReturnValue(boolean defRetValue)
     
    boolean
     
    boolean
    get(double k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    getOrDefault(double k, boolean defaultValue)
     
    getOrDefault(Object k, Boolean defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    boolean
    put(double k, boolean v)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    remove(double k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    boolean
    test(double operand)
     
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction

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

    Methods inherited from interface java.util.function.DoublePredicate

    and, negate, or
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.doubles.Double2BooleanFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f)
  • Method Details

    • test

      public boolean test(double operand)
      Specified by:
      test in interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
      Specified by:
      test in interface DoublePredicate
    • apply

      @Deprecated public Boolean apply(Double key)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      apply in interface it.unimi.dsi.fastutil.Function<Double,Boolean>
      Specified by:
      apply in interface Function<Double,Boolean>
    • size

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

      public boolean defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
    • defaultReturnValue

      public void defaultReturnValue(boolean defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
    • containsKey

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

      @Deprecated public boolean containsKey(Object k)
      Deprecated.
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<Double,Boolean>
    • put

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

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

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

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

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

      @Deprecated public Boolean put(Double k, Boolean v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<Double,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.doubles.Double2BooleanFunction
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<Double,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.doubles.Double2BooleanFunction
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<Double,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.doubles.Double2BooleanFunction
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<Double,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