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

Method lookup

base/src/main/java/net/time4j/UnitPatterns.java:461–474  ·  view source on GitHub ↗
(
        Locale language,
        IsoUnit unit,
        TextWidth width,
        PluralCategory category
    )

Source from the content-addressed store, hash-verified

459 }
460
461 private static String lookup(
462 Locale language,
463 IsoUnit unit,
464 TextWidth width,
465 PluralCategory category
466 ) {
467
468 try {
469 return lookup(PROVIDER, language, getID(unit), width, category);
470 } catch (MissingResourceException mre) { // should not happen
471 return lookup(FALLBACK, language, getID(unit), width, category);
472 }
473
474 }
475
476 private static String lookup(
477 UnitPatternProvider p,

Callers 2

UnitPatternsMethod · 0.95
getListPatternMethod · 0.95

Calls 15

getIDMethod · 0.95
getShortYearPatternMethod · 0.95
getShortMonthPatternMethod · 0.95
getShortWeekPatternMethod · 0.95
getShortDayPatternMethod · 0.95
getShortHourPatternMethod · 0.95
getShortMinutePatternMethod · 0.95
getShortSecondPatternMethod · 0.95
getYearPatternMethod · 0.65
getMonthPatternMethod · 0.65
getWeekPatternMethod · 0.65
getDayPatternMethod · 0.65

Tested by

no test coverage detected