Class Object2BooleanFunctions.SynchronizedFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Object2BooleanFunctions.SynchronizedFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Boolean>, it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>, Serializable, Function<K,Boolean>, Predicate<K>
Direct Known Subclasses:
Object2BooleanMaps.SynchronizedMap
Enclosing class:
Object2BooleanFunctions

public static class Object2BooleanFunctions.SynchronizedFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K> f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K> f, Object sync)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.Function

    compose

    Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction

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

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K> function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K> f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K> f)
  • Method Details

    • test

      public boolean test(K operand)
      Specified by:
      test in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
      Specified by:
      test in interface Predicate<K>
    • apply

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

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

      public boolean defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
    • defaultReturnValue

      public void defaultReturnValue(boolean defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
    • containsKey

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

      public boolean put(K k, boolean v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
    • getBoolean

      public boolean getBoolean(Object k)
      Specified by:
      getBoolean in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
    • getOrDefault

      public boolean getOrDefault(Object k, boolean defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
    • removeBoolean

      public boolean removeBoolean(Object k)
      Specified by:
      removeBoolean in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
    • clear

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

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