Class Short2BooleanFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.shorts.Short2BooleanFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Short,Boolean>, it.unimi.dsi.fastutil.shorts.Short2BooleanFunction, Serializable, Function<Short,Boolean>, IntPredicate
Direct Known Subclasses:
Short2BooleanMaps.SynchronizedMap
Enclosing class:
Short2BooleanFunctions

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

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

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

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.IntPredicate

    and, negate, or

    Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction

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

    • function

      protected final it.unimi.dsi.fastutil.shorts.Short2BooleanFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2BooleanFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2BooleanFunction f)
  • Method Details

    • test

      @Deprecated public boolean test(int operand)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      test in interface IntPredicate
      Specified by:
      test in interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
    • apply

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

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

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

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

      public boolean containsKey(short k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
    • containsKey

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

      public boolean put(short k, boolean v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
    • get

      public boolean get(short k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
    • getOrDefault

      public boolean getOrDefault(short k, boolean defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
    • remove

      public boolean remove(short k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.shorts.Short2BooleanFunction
    • clear

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

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