Class TimeZoneParser
- java.lang.Object
-
- net.kafujo.samples.wikidata.parser.WikidataParser<ZoneId>
-
- net.kafujo.samples.wikidata.parser.TimeZoneParser
-
public class TimeZoneParser extends WikidataParser<ZoneId>
-
-
Field Summary
Fields Modifier and Type Field Description static TimeZoneParserDEFAULT-
Fields inherited from class net.kafujo.samples.wikidata.parser.WikidataParser
fallbackCounter, lgr
-
-
Constructor Summary
Constructors Constructor Description TimeZoneParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZoneIdparse(String raw)ZoneIdparseFbk(String raw, ZoneId fbk)-
Methods inherited from class net.kafujo.samples.wikidata.parser.WikidataParser
getFallbackCounter
-
-
-
-
Field Detail
-
DEFAULT
public static final TimeZoneParser DEFAULT
-
-
Method Detail
-
parseFbk
public ZoneId parseFbk(String raw, ZoneId fbk)
- Specified by:
parseFbkin classWikidataParser<ZoneId>
-
parse
public ZoneId parse(String raw)
- Specified by:
parsein classWikidataParser<ZoneId>- Parameters:
raw-- Returns:
- Throws:
DateTimeException- if the zone ID has an invalid formatZoneRulesException- if the zone ID is a region ID that cannot be found
-
-