Interface ContentTypeAccessor.ContentTypeProvider

All Known Implementing Classes:
MediaType
Enclosing interface:
ContentTypeAccessor

public static interface ContentTypeAccessor.ContentTypeProvider
A provider interface provides a "toSomething(?)" method which converts a given instance into something else. The ContentTypeAccessor.ContentTypeProvider converts an implementing instance's state into a ContentType instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the ContentType instance from the implementing instance.
  • Method Details

    • toContentType

      ContentType toContentType()
      Returns the ContentType instance from the implementing instance.
      Returns:
      The according ContentType instance represented by the implementing instance.