Class Byte2BooleanFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2BooleanFunction
it.unimi.dsi.fastutil.bytes.Byte2BooleanFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction, it.unimi.dsi.fastutil.Function<Byte,Boolean>, Serializable, Function<Byte,Boolean>, IntPredicate
Direct Known Subclasses:
Byte2BooleanMaps.UnmodifiableMap
Enclosing class:
Byte2BooleanFunctions

public static class Byte2BooleanFunctions.UnmodifiableFunction extends AbstractByte2BooleanFunction implements Serializable
An unmodifiable wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
     

    Fields inherited from class it.unimi.dsi.fastutil.bytes.AbstractByte2BooleanFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction f)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction

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

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

    apply

    Methods inherited from interface java.util.function.IntPredicate

    and, negate, or
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction function
  • Constructor Details

    • UnmodifiableFunction

      protected UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction f)
  • Method Details

    • size

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

      public boolean defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
      Overrides:
      defaultReturnValue in class AbstractByte2BooleanFunction
    • defaultReturnValue

      public void defaultReturnValue(boolean defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
      Overrides:
      defaultReturnValue in class AbstractByte2BooleanFunction
    • containsKey

      public boolean containsKey(byte k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
    • put

      public boolean put(byte k, boolean v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
    • get

      public boolean get(byte k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
    • getOrDefault

      public boolean getOrDefault(byte k, boolean defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
    • remove

      public boolean remove(byte k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.bytes.Byte2BooleanFunction
    • clear

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

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