Class Long2BooleanFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.longs.Long2BooleanFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Long,Boolean>, it.unimi.dsi.fastutil.longs.Long2BooleanFunction, Serializable, Function<Long,Boolean>, LongPredicate
Direct Known Subclasses:
Long2BooleanMaps.SynchronizedMap
Enclosing class:
Long2BooleanFunctions

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

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

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

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction

    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.LongPredicate

    and, negate, or
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.longs.Long2BooleanFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2BooleanFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2BooleanFunction f)
  • Method Details

    • test

      public boolean test(long operand)
      Specified by:
      test in interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction
      Specified by:
      test in interface LongPredicate
    • apply

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

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

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

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

      public boolean containsKey(long k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction
    • containsKey

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

      public boolean put(long k, boolean v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction
    • get

      public boolean get(long k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction
    • getOrDefault

      public boolean getOrDefault(long k, boolean defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction
    • remove

      public boolean remove(long k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.longs.Long2BooleanFunction
    • clear

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

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