Class Byte2ByteFunctions.UnmodifiableFunction

java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2ByteFunction
it.unimi.dsi.fastutil.bytes.Byte2ByteFunctions.UnmodifiableFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2ByteFunction, it.unimi.dsi.fastutil.Function<Byte,Byte>, Serializable, Function<Byte,Byte>, IntUnaryOperator
Direct Known Subclasses:
Byte2ByteMaps.UnmodifiableMap
Enclosing class:
Byte2ByteFunctions

public static class Byte2ByteFunctions.UnmodifiableFunction extends AbstractByte2ByteFunction 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.Byte2ByteFunction
     

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

    defRetValue
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
     
    boolean
    containsKey(byte k)
     
    byte
     
    void
    defaultReturnValue(byte defRetValue)
     
    boolean
     
    byte
    get(byte k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    byte
    getOrDefault(byte k, byte defaultValue)
     
    getOrDefault(Object k, Byte defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    byte
    put(byte k, byte v)
     
    put(Byte k, Byte v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    byte
    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.Byte2ByteFunction

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

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

    apply

    Methods inherited from interface java.util.function.IntUnaryOperator

    andThen, compose
  • Field Details

    • function

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

    • UnmodifiableFunction

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

    • size

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

      public byte defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2ByteFunction
      Overrides:
      defaultReturnValue in class AbstractByte2ByteFunction
    • defaultReturnValue

      public void defaultReturnValue(byte defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2ByteFunction
      Overrides:
      defaultReturnValue in class AbstractByte2ByteFunction
    • containsKey

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

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

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

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

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

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

      @Deprecated public Byte put(Byte k, Byte v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.bytes.Byte2ByteFunction
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<Byte,Byte>
    • get

      @Deprecated public Byte get(Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      get in interface it.unimi.dsi.fastutil.bytes.Byte2ByteFunction
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<Byte,Byte>
    • getOrDefault

      @Deprecated public Byte getOrDefault(Object k, Byte defaultValue)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.bytes.Byte2ByteFunction
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<Byte,Byte>
    • remove

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