src/java.base/share/classes/java/time/chrono/HijrahDate.java

Print this page
rev 12809 : 8023217: Additional floorDiv/floorMod/multiplyExact methods for java.lang.Math
Summary: Add new methods with long, int signatures.
Reviewed-by: XXX

*** 1,7 **** /* ! * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 495,505 **** * Gets the day-of-week value. * * @return the day-of-week; computed from the epochday */ private int getDayOfWeek() { ! int dow0 = (int)Math.floorMod(toEpochDay() + 3, 7); return dow0 + 1; } /** * Gets the Era of this date. --- 495,505 ---- * Gets the day-of-week value. * * @return the day-of-week; computed from the epochday */ private int getDayOfWeek() { ! int dow0 = Math.floorMod(toEpochDay() + 3, 7); return dow0 + 1; } /** * Gets the Era of this date.