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

Method ceiling

base/src/main/java/net/time4j/engine/StdOperator.java:362–376  ·  view source on GitHub ↗
(
        ChronoEntity<T> entity,
        ChronoElement<V> element
    )

Source from the content-addressed store, hash-verified

360 }
361
362 private <V> T ceiling(
363 ChronoEntity<T> entity,
364 ChronoElement<V> element
365 ) {
366
367 T ctx = entity.getContext();
368 ChronoElement<?> e = element;
369
370 while ((e = ctx.getChronology().getRule(e).getChildAtCeiling(ctx)) != null) {
371 ctx = withCeiling(ctx, e);
372 }
373
374 return ctx;
375
376 }
377
378 private <V> T value(
379 ChronoEntity<T> entity,

Callers 1

applyMethod · 0.95

Calls 5

withCeilingMethod · 0.95
getChildAtCeilingMethod · 0.65
getContextMethod · 0.45
getRuleMethod · 0.45
getChronologyMethod · 0.45

Tested by

no test coverage detected