Interface RepositoryKeyFunction

  • All Superinterfaces:
    java.util.function.BiFunction<RemoteRepository,​java.lang.String,​java.lang.String>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface RepositoryKeyFunction
    extends java.util.function.BiFunction<RemoteRepository,​java.lang.String,​java.lang.String>
    The repository key function, it produces keys (strings) for given RemoteRepository instances.
    Since:
    2.0.14
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String apply​(RemoteRepository repository, java.lang.String context)
      Produces a string representing "repository key" for given RemoteRepository and optionally (maybe null) "context".
      • Methods inherited from interface java.util.function.BiFunction

        andThen
    • Method Detail

      • apply

        java.lang.String apply​(RemoteRepository repository,
                               java.lang.String context)
        Produces a string representing "repository key" for given RemoteRepository and optionally (maybe null) "context".
        Specified by:
        apply in interface java.util.function.BiFunction<RemoteRepository,​java.lang.String,​java.lang.String>
        Parameters:
        repository - The RemoteRepository, may not be null.
        context - The "context" string, or null.
        Returns:
        The "repository key" string, never null.