Package com.helger.photon.api
Interface IAPIPathAmbiguityResolver
-
- All Superinterfaces:
BiFunction<APIPath,com.helger.commons.collection.impl.ICommonsList<InvokableAPIDescriptor>,InvokableAPIDescriptor>
- All Known Implementing Classes:
LoggingAPIPathAmbiguityResolver
- 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 IAPIPathAmbiguityResolver extends BiFunction<APIPath,com.helger.commons.collection.impl.ICommonsList<InvokableAPIDescriptor>,InvokableAPIDescriptor>
Shared interface to resolve API ambiguities. So if a singleAPIPathresolves to multiple potential invokable handlers.- Since:
- 8.1.4
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvokableAPIDescriptorapply(APIPath aPath, com.helger.commons.collection.impl.ICommonsList<InvokableAPIDescriptor> aDescriptors)-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
@Nullable InvokableAPIDescriptor apply(@Nonnull APIPath aPath, @Nonnull com.helger.commons.collection.impl.ICommonsList<InvokableAPIDescriptor> aDescriptors)
- Specified by:
applyin interfaceBiFunction<APIPath,com.helger.commons.collection.impl.ICommonsList<InvokableAPIDescriptor>,InvokableAPIDescriptor>- Parameters:
aPath- The path for which handlers were resolved. Nevernull.aDescriptors- The descriptors that were found. Nevernullbut maybe empty.- Returns:
- The descriptor that should be used or
nullif it could not be determined.
-
-