Class UrlObjectMapperProblemRepository

java.lang.Object
dev.zemco.codegame.problems.UrlObjectMapperProblemRepository
All Implemented Interfaces:
IProblemRepository

public class UrlObjectMapperProblemRepository extends Object implements IProblemRepository
Problem repository which uses URL as a constant data source and ObjectMapper for deserialization.
Author:
Erik Zemčík
See Also:
  • ObjectMapper
  • Constructor Details

    • UrlObjectMapperProblemRepository

      public UrlObjectMapperProblemRepository(URL url, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Creates an instance of UrlObjectMapperProblemRepository.
      Parameters:
      url - resource to use as a constant data source
      objectMapper - object mapper to use for deserialization
      Throws:
      IllegalArgumentException - if url is null or if objectMapper is null
  • Method Details