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

Method floorDiv

base/src/main/java/net/time4j/PlainTime.java:2056–2067  ·  view source on GitHub ↗
(
        long value,
        long divisor
    )

Source from the content-addressed store, hash-verified

2054 }
2055
2056 private static long floorDiv(
2057 long value,
2058 long divisor
2059 ) {
2060
2061 if (value >= 0) {
2062 return (value / divisor);
2063 } else {
2064 return ((value + 1) / divisor) - 1;
2065 }
2066
2067 }
2068
2069 /**
2070 * @serialData Uses <a href="../../serialized-form.html#net.time4j.SPX">

Callers 15

getMethod · 0.80
MomentMethod · 0.80
plusMethod · 0.80
getDateUTCMethod · 0.80
addToMethod · 0.80
withValueMethod · 0.80
doApplyMethod · 0.80
ofMethod · 0.80
plusMethod · 0.80
doAddMethod · 0.80
createFromMethod · 0.80
currentTimeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected