Interface VersionResolver<T,R>

Type Parameters:
T - The type of object to resolve from
R - The type of version returned
All Known Subinterfaces:
RequestVersionResolver
All Known Implementing Classes:
HeaderVersionResolver, ParameterVersionResolver

public interface VersionResolver<T,R>
Resolves a version from a given object.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(T object)
    Resolves a version from a given object.
  • Method Details

    • resolve

      Optional<R> resolve(T object)
      Resolves a version from a given object.
      Parameters:
      object - The type of object to resolve from
      Returns:
      An optional object representing the version