Class Reference2ByteFunctions.PrimitiveFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2ByteFunctions.PrimitiveFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Byte>, it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>, Function<K,Byte>, ToIntFunction<K>
Enclosing class:
Reference2ByteFunctions

public static class Reference2ByteFunctions.PrimitiveFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Function<? super K,? extends Byte>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PrimitiveFunction(Function<? super K,? extends Byte> function)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    get(Object key)
    Deprecated.
    byte
     
    byte
    getOrDefault(Object key, byte defaultValue)
     
    getOrDefault(Object key, Byte defaultValue)
    Deprecated.
    put(K key, Byte value)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    apply, clear, size

    Methods inherited from interface java.util.function.Function

    compose

    Methods inherited from interface it.unimi.dsi.fastutil.objects.Reference2ByteFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, defaultReturnValue, defaultReturnValue, put, remove, removeByte
  • Field Details

    • function

      protected final Function<? super K,? extends Byte> function
  • Constructor Details

    • PrimitiveFunction

      protected PrimitiveFunction(Function<? super K,? extends Byte> function)
  • Method Details

    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<K,Byte>
    • getByte

      public byte getByte(Object key)
      Specified by:
      getByte in interface it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>
    • getOrDefault

      public byte getOrDefault(Object key, byte defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>
    • get

      @Deprecated public Byte get(Object key)
      Deprecated.
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<K,Byte>
      Specified by:
      get in interface it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>
    • getOrDefault

      @Deprecated public Byte getOrDefault(Object key, Byte defaultValue)
      Deprecated.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<K,Byte>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>
    • put

      @Deprecated public Byte put(K key, Byte value)
      Deprecated.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<K,Byte>
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2ByteFunction<K>