Class Byte2ReferenceFunctions.UnmodifiableFunction<V>

java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2ReferenceFunction<V>
it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunctions.UnmodifiableFunction<V>
All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<V>, it.unimi.dsi.fastutil.Function<Byte,V>, Serializable, Function<Byte,V>, IntFunction<V>
Direct Known Subclasses:
Byte2ReferenceMaps.UnmodifiableMap
Enclosing class:
Byte2ReferenceFunctions

public static class Byte2ReferenceFunctions.UnmodifiableFunction<V> extends AbstractByte2ReferenceFunction<V> 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.Byte2ReferenceFunction<? extends V>
     

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

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<? extends V> f)
     
  • Method Summary

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

    andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, apply, 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.Function

    andThen
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<? extends V> function
  • Constructor Details

    • UnmodifiableFunction

      protected UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<? extends V> f)
  • Method Details

    • size

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

      public V defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<V>
      Overrides:
      defaultReturnValue in class AbstractByte2ReferenceFunction<V>
    • defaultReturnValue

      public void defaultReturnValue(V defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<V>
      Overrides:
      defaultReturnValue in class AbstractByte2ReferenceFunction<V>
    • containsKey

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

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

      public V get(byte k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<V>
    • getOrDefault

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

      public V remove(byte k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.bytes.Byte2ReferenceFunction<V>
    • clear

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

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

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

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

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