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

Method of

base/src/main/java/net/time4j/engine/TimeSpan.java:335–342  ·  view source on GitHub ↗
(
            long amount,
            U unit
        )

Source from the content-addressed store, hash-verified

333 * @throws IllegalArgumentException if amount is negative
334 */
335 public static <U> Item<U> of(
336 long amount,
337 U unit
338 ) {
339
340 return new Item<>(amount, unit);
341
342 }
343
344 /**
345 * <p>Yields the non-negative amount. </p>

Callers 15

getTotalLengthMethod · 0.95
getTotalLengthMethod · 0.95
ofMethod · 0.95
ofCalendarUnitsMethod · 0.95
ofClockUnitsMethod · 0.95
plusMethod · 0.95
multipliedByMethod · 0.95
toCalendarPeriodMethod · 0.95
toClockPeriodMethod · 0.95
createMethod · 0.95
replaceFractionMethod · 0.95

Calls

no outgoing calls

Tested by 1

getTotalLengthMethod · 0.76