Class Char2BooleanFunctions.EmptyFunction

java.lang.Object
it.unimi.dsi.fastutil.chars.AbstractChar2BooleanFunction
it.unimi.dsi.fastutil.chars.Char2BooleanFunctions.EmptyFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.chars.Char2BooleanFunction, it.unimi.dsi.fastutil.Function<Character,Boolean>, Serializable, Cloneable, Function<Character,Boolean>, IntPredicate
Direct Known Subclasses:
Char2BooleanMaps.EmptyMap
Enclosing class:
Char2BooleanFunctions

public static class Char2BooleanFunctions.EmptyFunction extends AbstractChar2BooleanFunction 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.AbstractChar2BooleanFunction

    defRetValue
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

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

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

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

    apply

    Methods inherited from interface java.util.function.IntPredicate

    and, negate, or
  • Constructor Details

    • EmptyFunction

      protected EmptyFunction()
  • Method Details

    • get

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

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

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

      public boolean defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.chars.Char2BooleanFunction
      Overrides:
      defaultReturnValue in class AbstractChar2BooleanFunction
    • defaultReturnValue

      public void defaultReturnValue(boolean defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.chars.Char2BooleanFunction
      Overrides:
      defaultReturnValue in class AbstractChar2BooleanFunction
    • size

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

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