Class Object2BooleanFunctions.UnmodifiableFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2BooleanFunction<K>
it.unimi.dsi.fastutil.objects.Object2BooleanFunctions.UnmodifiableFunction<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.UnmodifiableMap
Enclosing class:
Object2BooleanFunctions

public static class Object2BooleanFunctions.UnmodifiableFunction<K> extends AbstractObject2BooleanFunction<K> implements Serializable
An unmodifiable wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.Object2BooleanFunction<? extends K>
     

    Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2BooleanFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2BooleanFunction<? extends K> f)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
     
     

    Methods inherited from class java.lang.Object

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

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

    apply

    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, test

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.objects.Object2BooleanFunction<? extends K> function
  • Constructor Details

    • UnmodifiableFunction

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

    • 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>
      Overrides:
      defaultReturnValue in class AbstractObject2BooleanFunction<K>
    • defaultReturnValue

      public void defaultReturnValue(boolean defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2BooleanFunction<K>
      Overrides:
      defaultReturnValue in class AbstractObject2BooleanFunction<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