Package com.ibm.icu.dev.tool.timescale
Class CalculateLimits
- java.lang.Object
-
- com.ibm.icu.dev.tool.timescale.CalculateLimits
-
public class CalculateLimits extends java.lang.Object
This class calculates the minimum and maximum values which can be used as arguments totoLong
andfrom
. NOTE: If you change the way in which these values are calculated, it may be necessary to disable totoRangeCheck()
andfromRangeCheck()
methods in theUniversalTimeScale
for all of the calculations to run without throwing an error.- See Also:
UniversalTimeScale
-
-
Constructor Summary
Constructors Constructor Description CalculateLimits()
The default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
This method first calculates thefrom
limits by passingLong.MIN_VALUE
andLong.MAX_VALUE
to the (internal)toBigDecimalTrunc()
method.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
This method first calculates thefrom
limits by passingLong.MIN_VALUE
andLong.MAX_VALUE
to the (internal)toBigDecimalTrunc()
method. Any values outside of the range of along
are pinned. The mimimum and maximum values fortoLong
are calculated by passing the min and max values calculated above toBigDecimalFrom()
. Because this method will round, the returned values are adjusted to take this into account.- Parameters:
args
- - the command line arguments- See Also:
UniversalTimeScale
-
-