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

Method getPattern

base/src/main/java/net/time4j/UnitPatterns.java:261–270  ·  view source on GitHub ↗

Yields a unit pattern which optionally contains a placeholder of the form "{0}" standing for the count of units. @param width text width (ABBREVIATED as synonym for SHORT) @param category plural category @param unit associated iso unit @return unit pattern

(
        TextWidth width,
        PluralCategory category,
        IsoUnit unit
    )

Source from the content-addressed store, hash-verified

259 * @return unit pattern
260 */
261 String getPattern(
262 TextWidth width,
263 PluralCategory category,
264 IsoUnit unit
265 ) {
266
267 checkNull(width, category);
268 return this.patterns.get(unit).get(width).get(category);
269
270 }
271
272 /**
273 * <p>Yields a unit pattern which optionally contains a placeholder

Callers 1

printMethod · 0.95

Calls 2

checkNullMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected