Class Char2IntFunctions.EmptyFunction

java.lang.Object
it.unimi.dsi.fastutil.chars.AbstractChar2IntFunction
it.unimi.dsi.fastutil.chars.Char2IntFunctions.EmptyFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.chars.Char2IntFunction, it.unimi.dsi.fastutil.Function<Character,Integer>, Serializable, Cloneable, Function<Character,Integer>, IntUnaryOperator
Direct Known Subclasses:
Char2IntMaps.EmptyMap
Enclosing class:
Char2IntFunctions

public static class Char2IntFunctions.EmptyFunction extends AbstractChar2IntFunction 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.chars.AbstractChar2IntFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    boolean
    containsKey(char k)
     
    int
     
    void
    defaultReturnValue(int defRetValue)
     
    boolean
     
    int
    get(char k)
     
    int
    getOrDefault(char k, int 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.chars.Char2IntFunction

    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

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

    apply

    Methods inherited from interface java.util.function.IntUnaryOperator

    andThen, compose
  • Constructor Details

    • EmptyFunction

      protected EmptyFunction()
  • Method Details

    • get

      public int get(char k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.chars.Char2IntFunction
    • getOrDefault

      public int getOrDefault(char k, int defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.chars.Char2IntFunction
    • containsKey

      public boolean containsKey(char k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.chars.Char2IntFunction
    • defaultReturnValue

      public int defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.chars.Char2IntFunction
      Overrides:
      defaultReturnValue in class AbstractChar2IntFunction
    • defaultReturnValue

      public void defaultReturnValue(int defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.chars.Char2IntFunction
      Overrides:
      defaultReturnValue in class AbstractChar2IntFunction
    • size

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

      public void clear()
      Specified by:
      clear in interface it.unimi.dsi.fastutil.Function<Character,Integer>
    • 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