mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-25 17:50:45 +00:00
8146489: @since tag missed
Reviewed-by: lancea, rriggs
This commit is contained in:
parent
3f8548453c
commit
e49fa68b05
@ -1194,6 +1194,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the whole seconds part of the length of the duration, positive or negative
|
||||
* @since 9
|
||||
*/
|
||||
public long toSeconds() {
|
||||
return seconds;
|
||||
@ -1243,6 +1244,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the number of days in the duration, may be negative
|
||||
* @since 9
|
||||
*/
|
||||
public long toDaysPart(){
|
||||
return seconds / SECONDS_PER_DAY;
|
||||
@ -1258,6 +1260,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the number of hours part in the duration, may be negative
|
||||
* @since 9
|
||||
*/
|
||||
public int toHoursPart(){
|
||||
return (int) (toHours() % 24);
|
||||
@ -1273,7 +1276,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the number of minutes parts in the duration, may be negative
|
||||
* may be negative
|
||||
* @since 9
|
||||
*/
|
||||
public int toMinutesPart(){
|
||||
return (int) (toMinutes() % MINUTES_PER_HOUR);
|
||||
@ -1289,6 +1292,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the number of seconds parts in the duration, may be negative
|
||||
* @since 9
|
||||
*/
|
||||
public int toSecondsPart(){
|
||||
return (int) (seconds % SECONDS_PER_MINUTE);
|
||||
@ -1306,6 +1310,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the number of milliseconds part of the duration.
|
||||
* @since 9
|
||||
*/
|
||||
public int toMillisPart(){
|
||||
return nanos / 1000_000;
|
||||
@ -1322,6 +1327,7 @@ public final class Duration
|
||||
* This instance is immutable and unaffected by this method call.
|
||||
*
|
||||
* @return the nanoseconds within the second part of the length of the duration, from 0 to 999,999,999
|
||||
* @since 9
|
||||
*/
|
||||
public int toNanosPart(){
|
||||
return nanos;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user