Class Functions.FunctionForMapNoDefault<K,V>

java.lang.Object
com.google.common.base.Functions.FunctionForMapNoDefault<K,V>
All Implemented Interfaces:
Function<K,V>, Serializable, Function<K,V>
Enclosing class:
Functions

private static class Functions.FunctionForMapNoDefault<K,V> extends Object implements Function<K,V>, Serializable
  • Field Details

  • Constructor Details

    • FunctionForMapNoDefault

      FunctionForMapNoDefault(Map<K,V> map)
  • Method Details

    • apply

      public V apply(K key)
      Specified by:
      apply in interface Function<K,V>
      Specified by:
      apply in interface Function<K,V>
    • equals

      public boolean equals(@CheckForNull Object o)
      Description copied from interface: Function
      May return true if object is a Function that behaves identically to this function.

      Warning: do not depend on the behavior of this method.

      Historically, Function instances in this library have implemented this method to recognize certain cases where distinct Function instances would in fact behave identically. However, as code migrates to java.util.function, that behavior will disappear. It is best not to depend on it.

      Specified by:
      equals in interface Function<K,V>
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object