de.tsl2.nano.core.util.NumberUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.terminal Show documentation
Show all versions of tsl2.nano.terminal Show documentation
TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)
???? 4R
M ?
, ? ?
? ?
, ? ?
# ?
? ?
?
?
? ? ?
?
L ?
?
? ?
? ? ?
L ? ?
? ?
? L ?
B ?
?
= ? ?
? ?
3 ?
? ? ?
? ? - ? * ? , ? / ? 0 ? ?
? ? ? ? ? ? ?
? ?
? ? ?
= ?
? ?
0 ? ?
7 ?
# ?
= ?
. ?
. ? ?
= ?
? ?
,
B L
E ?
E
B
E ?
InnerClasses numberFormat Ljava/text/DecimalFormat; ()V Code LineNumberTable LocalVariableTable this #Lde/tsl2/nano/core/util/NumberUtil; fixLengthNumber $(Ljava/lang/Long;IC)Ljava/lang/Long; numberPrefix Ljava/lang/Long; fixLength I fillChar C numberStr Ljava/lang/String; fullNumberString
StackMapTable ? getBigDecimals ,([Ljava/lang/Number;)[Ljava/math/BigDecimal; i numbers [Ljava/lang/Number; result [Ljava/math/BigDecimal; k getEmptyNumbers (I)[Ljava/math/BigDecimal; count subtract E(Ljava/math/BigDecimal;[Ljava/math/BigDecimal;)Ljava/math/BigDecimal; s Ljava/math/BigDecimal; value subtractions add /([Ljava/math/BigDecimal;)Ljava/math/BigDecimal; values ? +([Ljava/lang/Number;)Ljava/math/BigDecimal; Ljava/lang/Number; i isEmpty (Ljava/lang/Number;)Z number isZero (Ljava/math/BigDecimal;)Z isAllZero ([Ljava/math/BigDecimal;)Z
hasEqualSigns sign
isPositive
isNegative
isNotNegative
getBigDecimal *(Ljava/lang/String;)Ljava/math/BigDecimal; e Ljava/text/ParseException; numberAsString ? getNumberAndStringComparator *(Ljava/text/Format;)Ljava/util/Comparator; df Ljava/text/Format; +(Ljava/text/Format;Z)Ljava/util/Comparator;
stringOnly Z
extractNumber &(Ljava/lang/String;)Ljava/lang/Number; pos Ljava/text/ParsePosition; ex Ljava/lang/Exception; s1 ? ? ? getLocalUniqueInt ()I isNumber (Ljava/lang/Object;)Z !Ljava/lang/NumberFormatException; Ljava/lang/Object; ? (Ljava/lang/Class;)Z type Ljava/lang/Class; LocalVariableTypeTable Ljava/lang/Class<*>; Signature (Ljava/lang/Class<*>;)Z isInteger
isFloating getDefaultInstance %(Ljava/lang/Class;)Ljava/lang/Number;
numberType Ljava/lang/Class; 1(Ljava/lang/Class;)TT; isNaN toNumber (Ljava/lang/Object;)J obj
fromNumber &(JLjava/lang/Class;)Ljava/lang/Object;
identifier J 2(JLjava/lang/Class;)TT;
SourceFile NumberUtil.java Q R java/math/BigDecimal Q s p v "java/lang/IllegalArgumentException $At least one number has to be given! Q ? !"#$% java/text/ParseException ? ? #de/tsl2/nano/core/util/NumberUtil$1 Q& java/text/ParsePosition Q' O P()* ?+ ? java/lang/Exception,- ? java/lang/NumberFormatException java/lang/Number./ ?0 ? java/lang/Integer1/2 java/lang/Long java/lang/Short java/math/BigInteger java/lang/Float java/lang/Double34567 java/lang/Object89: ?4 java/util/Date;<=<>? Q@ java/lang/StringABCDEFG java/text/DecimalFormatHIJK java/lang/StringBuilder 2NumberUtil using DecimalFormat with current state:LMNOPQ !de/tsl2/nano/core/util/NumberUtil de/tsl2/nano/core/util/BitUtil toString ()Ljava/lang/String; !de/tsl2/nano/core/util/StringUtil fixString )(Ljava/lang/String;ICZ)Ljava/lang/String; valueOf $(Ljava/lang/String;)Ljava/lang/Long; doubleValue ()D (D)V ZERO .(Ljava/math/BigDecimal;)Ljava/math/BigDecimal; compareTo (Ljava/math/BigDecimal;)I (Ljava/lang/String;)V checkParameterCount ([Ljava/lang/Object;I)V signum !de/tsl2/nano/core/util/FormatUtil getDefaultFormat '(Ljava/lang/Object;Z)Ljava/text/Format; java/text/Format parseObject &(Ljava/lang/String;)Ljava/lang/Object; (ZLjava/text/Format;)V (I)V parse ?(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/lang/Number; getIndex length de/tsl2/nano/core/util/DateUtil currentTimeSeconds java/lang/Class isAssignableFrom TYPE de/tsl2/nano/core/cls/BeanClass %(Ljava/lang/Class;Ljava/lang/Class;)Z isPrimitive ()Z #de/tsl2/nano/core/cls/PrimitiveUtil getDefaultValue %(Ljava/lang/Class;)Ljava/lang/Object; (I)Ljava/lang/String; createInstance 8(Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; getTime ()J longValue getBytes ()[B (I[B)V (J)Ljava/lang/String;
fromDecString &(Ljava/lang/String;)Ljava/lang/String; (J)Ljava/lang/Long; java/text/NumberFormat getNumberInstance ()Ljava/text/NumberFormat; setParseBigDecimal (Z)V LOG Lorg/apache/commons/logging/Log; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toPattern org/apache/commons/logging/Log debug (Ljava/lang/Object;)V ! L M O P Q R S / *? ? T U V W X Y S ? *?
*? ? N-? :? ? T 2 3 4 U 4 Z [ \ ] ^ _ ` a b a c A d ? e f S ? &*?? L=*?? +? Y*2? ? S????+? T > ? @ ? $ B U g ] &