Package com.cedarsoftware.util.convert
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 Summary
Modifier and TypeMethodDescriptiondefault Character
Character to return for boolean to Character conversion when the boolean is false.default Charset
default ClassLoader
Overrides for converter conversions.default <T> T
getCustomOption
(String name) default Locale
default TimeZone
default ZoneId
default Character
trueChar()
Character to return for boolean to Character conversion when the boolean is true.
-
Method Details
-
getZoneId
- Returns:
ZoneId
to use for source conversion when one is not provided and is required on the target type. ie.LocalDateTime
,LocalDate
, orString
when no zone is provided.
-
getLocale
- Returns:
- Locale to use as target when converting between types that require a Locale.
-
getCharset
- Returns:
- Charset to use os target Charset on types that require a Charset during conversion (if required).
-
getClassLoader
- Returns:
- Classloader for loading and initializing classes.
-
getCustomOption
- Returns:
- custom option
-
getTimeZone
- Returns:
- TimeZone expected on the target when finished (only for types that support ZoneId or TimeZone)
-
trueChar
Character to return for boolean to Character conversion when the boolean is true.- Returns:
- the Character representing true
-
falseChar
Character to return for boolean to Character conversion when the boolean is false.- Returns:
- the Character representing false
-
getConverterOverrides
Overrides for converter conversions.- Returns:
- The Map of overrides.
-