Class Interners.InternerFunction<E>

java.lang.Object
com.google.common.collect.Interners.InternerFunction<E>
All Implemented Interfaces:
Function<E,E>, Function<E,E>
Enclosing class:
Interners

private static class Interners.InternerFunction<E> extends Object implements Function<E,E>
  • Field Details

    • interner

      private final Interner<E> interner
  • Constructor Details

    • InternerFunction

      public InternerFunction(Interner<E> interner)
  • Method Details

    • apply

      public E apply(E input)
      Specified by:
      apply in interface Function<E,E>
      Specified by:
      apply in interface Function<E,E>
    • hashCode

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

      public boolean equals(@CheckForNull Object other)
      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<E,E>
      Overrides:
      equals in class Object