Class Short2CharFunctions.EmptyFunction

java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShort2CharFunction
it.unimi.dsi.fastutil.shorts.Short2CharFunctions.EmptyFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Short,Character>, it.unimi.dsi.fastutil.shorts.Short2CharFunction, Serializable, Cloneable, Function<Short,Character>, IntUnaryOperator
Direct Known Subclasses:
Short2CharMaps.EmptyMap
Enclosing class:
Short2CharFunctions

public static class Short2CharFunctions.EmptyFunction extends AbstractShort2CharFunction implements Serializable, Cloneable
An immutable class representing an empty type-specific function.

This class may be useful to implement your own in case you subclass a type-specific function.

See Also:
  • Field Summary

    Fields inherited from class it.unimi.dsi.fastutil.shorts.AbstractShort2CharFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    boolean
    containsKey(short k)
     
    char
     
    void
    defaultReturnValue(char defRetValue)
     
    boolean
     
    char
    get(short k)
     
    char
    getOrDefault(short k, char defaultValue)
     
    int
     
    int
     
     

    Methods inherited from class java.lang.Object

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

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

    apply

    Methods inherited from interface java.util.function.IntUnaryOperator

    andThen, compose

    Methods inherited from interface it.unimi.dsi.fastutil.shorts.Short2CharFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, get, getOrDefault, put, put, remove, remove
  • Constructor Details

    • EmptyFunction

      protected EmptyFunction()
  • Method Details

    • get

      public char get(short k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.shorts.Short2CharFunction
    • getOrDefault

      public char getOrDefault(short k, char defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.shorts.Short2CharFunction
    • containsKey

      public boolean containsKey(short k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.shorts.Short2CharFunction
    • defaultReturnValue

      public char defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.shorts.Short2CharFunction
      Overrides:
      defaultReturnValue in class AbstractShort2CharFunction
    • defaultReturnValue

      public void defaultReturnValue(char defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.shorts.Short2CharFunction
      Overrides:
      defaultReturnValue in class AbstractShort2CharFunction
    • size

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

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

      public Object clone()
      Overrides:
      clone in class Object
    • 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