DP-3T / dp3t-sdk-backend

The backend implementation for DP3T
Mozilla Public License 2.0
198 stars 88 forks source link

Add roundTo(BucketStart|NextBucket) to UTCInstant #234

Closed ineiti closed 4 years ago

ineiti commented 4 years ago

This PR adds the two methods roundTo(BucketStart|NextBucket) to the 'UTCInstant' class. This simplifies a lot of calculations in different parts of the code. More conversions of 'long' to 'UTCInstant'.

Closes #232

sonarcloud[bot] commented 4 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

90.0% 90.0% Coverage
0.0% 0.0% Duplication