Interface ConverterOptions

All Known Implementing Classes:
DefaultConverterOptions

public interface ConverterOptions
Author:
Kenny Partlow ([email protected])
Copyright (c) Cedar Software LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

License

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  • Method Details

    • getZoneId

      default ZoneId getZoneId()
      Returns:
      ZoneId to use for source conversion when one is not provided and is required on the target type. ie. LocalDateTime, LocalDate, or String when no zone is provided.
    • getLocale

      default Locale getLocale()
      Returns:
      Locale to use as target when converting between types that require a Locale.
    • getCharset

      default Charset getCharset()
      Returns:
      Charset to use os target Charset on types that require a Charset during conversion (if required).
    • getClassLoader

      default ClassLoader getClassLoader()
      Returns:
      Classloader for loading and initializing classes.
    • getCustomOption

      default <T> T getCustomOption(String name)
      Returns:
      custom option
    • getTimeZone

      default TimeZone getTimeZone()
      Returns:
      TimeZone expected on the target when finished (only for types that support ZoneId or TimeZone)
    • trueChar

      default Character trueChar()
      Character to return for boolean to Character conversion when the boolean is true.
      Returns:
      the Character representing true
    • falseChar

      default Character falseChar()
      Character to return for boolean to Character conversion when the boolean is false.
      Returns:
      the Character representing false
    • getConverterOverrides

      default Map<Map.Entry<Class<?>,Class<?>>,Convert<?>> getConverterOverrides()
      Overrides for converter conversions.
      Returns:
      The Map of overrides.