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

Method build

base/src/main/java/net/time4j/Duration.java:4251–4262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4249 * @return new {@code Duration}
4250 */
4251 public Duration<IsoUnit> build() {
4252
4253 if (this.items.isEmpty()) {
4254 throw new IllegalStateException("Not set any amount and unit.");
4255 }
4256
4257 return new Duration<>(
4258 this.items,
4259 this.negative
4260 );
4261
4262 }
4263
4264 private void set(
4265 long amount,

Callers 15

ofPositiveBuilderMethod · 0.45
ofNegativeBuilderMethod · 0.45
getTotalLengthMethod · 0.45
minusClockUnitsMethod · 0.45
composeMethod · 0.45
jodaStyleMethod · 0.45

Calls 1

isEmptyMethod · 0.65

Tested by 15

ofPositiveBuilderMethod · 0.36
ofNegativeBuilderMethod · 0.36
getTotalLengthMethod · 0.36
minusClockUnitsMethod · 0.36
composeMethod · 0.36
jodaStyleMethod · 0.36