fix: changed return types to primitive types
This commit is contained in:
@@ -240,7 +240,7 @@ public final class ChainedCalcUtil {
|
|||||||
*
|
*
|
||||||
* @return the current value as a {@link Double}
|
* @return the current value as a {@link Double}
|
||||||
*/
|
*/
|
||||||
public Double getDouble() {
|
public double getDouble() {
|
||||||
return getValue().doubleValue();
|
return getValue().doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,7 +250,7 @@ public final class ChainedCalcUtil {
|
|||||||
* @param scale the scale for the result
|
* @param scale the scale for the result
|
||||||
* @return the current value as a {@link Double} with the specified scale
|
* @return the current value as a {@link Double} with the specified scale
|
||||||
*/
|
*/
|
||||||
public Double getDouble(int scale) {
|
public double getDouble(int scale) {
|
||||||
return getValue(scale).doubleValue();
|
return getValue(scale).doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,7 +259,7 @@ public final class ChainedCalcUtil {
|
|||||||
*
|
*
|
||||||
* @return the current value as a {@link Long}
|
* @return the current value as a {@link Long}
|
||||||
*/
|
*/
|
||||||
public Long getLong() {
|
public long getLong() {
|
||||||
return getValue().longValue();
|
return getValue().longValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +268,7 @@ public final class ChainedCalcUtil {
|
|||||||
*
|
*
|
||||||
* @return the current value as an {@link Integer}
|
* @return the current value as an {@link Integer}
|
||||||
*/
|
*/
|
||||||
public Integer getInteger() {
|
public int getInteger() {
|
||||||
return getValue().intValue();
|
return getValue().intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user