Top Description Fields Constructors Methods
com.thoughtworks.xstream.converters.time

public Class HijrahDateConverter

extends AbstractChronoLocalDateConverter<HijrahEra>
Class Inheritance
Imports
java.time.chrono.ChronoLocalDate, .Chronology, .HijrahChronology, .HijrahDate, .HijrahEra, java.util.HashSet, .Set

Converts a java.time.chrono.HijrahDate to a string.
Author
Jörg Schaible
Since
1.4.10

Field Summary

Modifier and TypeField and Description
private final Set<Chronology>

Constructor Summary

AccessConstructor and Description
public
HijrahDateConverter()

Constructs a HijrahDateConverter instance.

Method Summary

Modifier and TypeMethod and Description
public boolean
canConvert(final Class<T>
the Class representing the object type to be converted
type
)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.canConvert.

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.
protected ChronoLocalDate
chronoLocalDateOf(final HijrahEra era, final int prolepticYear, final int month, final int dayOfMonth)

Implements abstract com.thoughtworks.xstream.converters.time.AbstractChronoLocalDateConverter.chronoLocalDateOf.

protected HijrahEra
public Object
fromString(final String
the String with the single value of the Object
str
)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.fromString.

Implements com.thoughtworks.xstream.converters.SingleValueConverter.fromString.

Unmarshals an Object from its single value representation.
Inherited from com.thoughtworks.xstream.converters.time.AbstractChronoLocalDateConverter:
parseChronoLocalDate

Field Detail

hijrahChronologiesback to summary
private final Set<Chronology> hijrahChronologies

Constructor Detail

HijrahDateConverterback to summary
public HijrahDateConverter()

Constructs a HijrahDateConverter instance.

Method Detail

canConvertback to summary
public boolean canConvert(final Class<T> type)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.canConvert.

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Doc from com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.

Parameters
type:Class<T>

the Class representing the object type to be converted

Annotations
@Override
chronoLocalDateOfback to summary
protected ChronoLocalDate chronoLocalDateOf(final HijrahEra era, final int prolepticYear, final int month, final int dayOfMonth)

Implements abstract com.thoughtworks.xstream.converters.time.AbstractChronoLocalDateConverter.chronoLocalDateOf.

Annotations
@Override
eraOfback to summary
protected HijrahEra eraOf(final String id)

Implements abstract com.thoughtworks.xstream.converters.time.AbstractChronoLocalDateConverter.eraOf.

Annotations
@Override
fromStringback to summary
public Object fromString(final String str)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.fromString.

Implements com.thoughtworks.xstream.converters.SingleValueConverter.fromString.

Doc from com.thoughtworks.xstream.converters.SingleValueConverter.fromString.

Unmarshals an Object from its single value representation.

Parameters
str:String

the String with the single value of the Object

Returns:Object

the Object

Annotations
@Override