public class ThaiBuddhistDateConverter extends AbstractSingleValueConverter
ThaiBuddhistDate to a string.| Constructor and Description |
|---|
ThaiBuddhistDateConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type.
|
protected ChronoLocalDate |
chronoLocalDateOf(ThaiBuddhistEra era,
int prolepticYear,
int month,
int dayOfMonth) |
protected ThaiBuddhistEra |
eraOf(String id) |
Object |
fromString(String str)
Unmarshals an Object from its single value representation.
|
protected ChronoLocalDate |
parseChronoLocalDate(String str,
String dateTypeName,
Set<Chronology> chronologies) |
toStringpublic boolean canConvert(Class type)
ConverterMatchercanConvert in interface ConverterMatchercanConvert in class AbstractSingleValueConvertertype - the Class representing the object type to be convertedpublic Object fromString(String str)
SingleValueConverterfromString in interface SingleValueConverterfromString in class AbstractSingleValueConverterstr - the String with the single value of the Objectprotected ChronoLocalDate chronoLocalDateOf(ThaiBuddhistEra era, int prolepticYear, int month, int dayOfMonth)
protected ThaiBuddhistEra eraOf(String id)
protected ChronoLocalDate parseChronoLocalDate(String str, String dateTypeName, Set<Chronology> chronologies)
Copyright © 2004–2017 XStream. All rights reserved.