MCPcopy Create free account
hub / github.com/MenoData/Time4J / parse

Method parse

base/src/main/java/net/time4j/calendar/SolarTerm.java:612–625  ·  view source on GitHub ↗
(
        CharSequence text,
        Locale locale
    )

Source from the content-addressed store, hash-verified

610 * @throws ParseException if parsing fails
611 */
612 public static SolarTerm parse(
613 CharSequence text,
614 Locale locale
615 ) throws ParseException {
616
617 SolarTerm st = parse(text, locale, new ParsePosition(0));
618
619 if (st == null) {
620 throw new ParseException("Cannot parse: " + text, 0);
621 } else {
622 return st;
623 }
624
625 }
626
627 // also called by EastAsianST
628 static SolarTerm parse(

Callers 3

parseChineseMethod · 0.95
parseEnglishMethod · 0.95
parseMethod · 0.95

Calls 7

getTextFormsMethod · 0.95
isEmptyMethod · 0.65
toStringMethod · 0.65
getIndexMethod · 0.45
minMethod · 0.45
lengthMethod · 0.45
equalsMethod · 0.45

Tested by 2

parseChineseMethod · 0.76
parseEnglishMethod · 0.76