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

Method floor

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

Source from the content-addressed store, hash-verified

344 }
345
346 private <V> T floor(
347 ChronoEntity<T> entity,
348 ChronoElement<V> element
349 ) {
350
351 T ctx = entity.getContext();
352 ChronoElement<?> e = element;
353
354 while ((e = ctx.getChronology().getRule(e).getChildAtFloor(ctx)) != null) {
355 ctx = withFloor(ctx, e);
356 }
357
358 return ctx;
359
360 }
361
362 private <V> T ceiling(
363 ChronoEntity<T> entity,

Callers 15

applyMethod · 0.95
maxElevationMethod · 0.80
applyMethod · 0.80
MomentMethod · 0.80
getElapsedTimeMethod · 0.80
getNanosecondMethod · 0.80
getModernUTMethod · 0.80
ofPosixSecondsMethod · 0.80
ofSISecondsMethod · 0.80
normalizeMethod · 0.80
ofMethod · 0.80

Calls 5

withFloorMethod · 0.95
getChildAtFloorMethod · 0.65
getContextMethod · 0.45
getRuleMethod · 0.45
getChronologyMethod · 0.45

Tested by 2

maxElevationMethod · 0.64