Class YAMLMapperFactory

java.lang.Object
io.github.astrapi69.yaml.factory.YAMLMapperFactory

public final class YAMLMapperFactory extends Object
The factory class YAMLMapperFactory for creating YAMLMapper objects
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
    Factory method for create a new YAMLMapper
    static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
    newYAMLMapper(boolean newMapper)
    Factory method for create a new YAMLMapper.
    static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
    newYAMLMapper(com.fasterxml.jackson.dataformat.yaml.YAMLFactory yamlFactory)
    Factory method for create a new YAMLMapper
    static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
    newYAMLMapper(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper)
    Factory method for create a new YAMLMapper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newYAMLMapper

      public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper()
      Factory method for create a new YAMLMapper
      Returns:
      the new YAMLMapper
    • newYAMLMapper

      public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper(boolean newMapper)
      Factory method for create a new YAMLMapper. If the given flag is true a new YAMLMapper will be created otherwise the default YAMLMapper will be taken.
      Parameters:
      newMapper - flag that indicates if a new YAMLMapper should be created, if true a new YAMLMapper will be created otherwise the default YAMLMapper from this class will be returned.
      Returns:
      the new YAMLMapper
    • newYAMLMapper

      public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper(com.fasterxml.jackson.dataformat.yaml.YAMLFactory yamlFactory)
      Factory method for create a new YAMLMapper
      Parameters:
      yamlFactory - the YAMLFactory object
      Returns:
      the new YAMLMapper
    • newYAMLMapper

      public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper)
      Factory method for create a new YAMLMapper
      Parameters:
      yamlMapper - the YAMLMapper object
      Returns:
      the new YAMLMapper