joptsimple.internal.Rows.class Maven / Gradle / Ivy
???? 3 ? joptsimple/internal/Rows java/lang/Object Rows.java overallWidth I columnSeparatorWidth rows Ljava/util/List; +Ljava/util/List; widthOfWidestOption widthOfWidestDescription (II)V ()V
java/util/ArrayList
this Ljoptsimple/internal/Rows; add '(Ljava/lang/String;Ljava/lang/String;)V joptsimple/internal/Row
! " (Ljoptsimple/internal/Row;)V $
% option Ljava/lang/String; description java/util/List * (Ljava/lang/Object;)Z , + - / ' ( ! 1 java/lang/String 3 length ()I 5 6
4 7 java/lang/Math 9 max (II)I ; <
: =
? ) ( ! A row Ljoptsimple/internal/Row; reset clear F + G
fitToWidth joptsimple/internal/Columns J optionWidth L 6
M descriptionWidth O 6
P
K R iterator ()Ljava/util/Iterator; T U + V java/util/Iterator X hasNext ()Z Z [ Y \ next ()Ljava/lang/Object; ^ _ Y ` fit +(Ljoptsimple/internal/Row;)Ljava/util/List; b c
K d addAll (Ljava/util/Collection;)Z f g + h E
j each columns Ljoptsimple/internal/Columns; fitted render ()Ljava/lang/String; java/lang/StringBuilder r
s pad G(Ljava/lang/StringBuilder;Ljava/lang/String;I)Ljava/lang/StringBuilder; u v
w joptsimple/internal/Strings y repeat (CI)Ljava/lang/String; { |
z } append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ?
s ? LINE_SEPARATOR ? ( z ? toString ? q
s ? buffer Ljava/lang/StringBuilder; min ? <
: ? s Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
SourceFile !
?
? h *? *? Y? ? *? *? ? ? ? . ) / 0 1 ? P *? !Y+,? #? &? ? ' ( ) ( ?
4
5 $ ? p 0*? +? . W**? 0+? 2? 8? >? 0**? @+? B? 8? >? @? ? 0 0 C D ? 8 9 : / ; E ? J *? ? H *? 0*? @? ? ? > ? @ A I ? o? KY*? N*? Q? SL? Y? M*? ? W N-? ] ? -? a ? !:,+? e? i W???*? k,? W N-? ] ? -? a ? !:*? &??? ? 4 6
l D e l D o _ m n W o
? W o ? " D F G 6 H F J J L e M n N ? ? " K + Y? #?
Y? p q ? ? [? sY? tL*? ? W M,? ] ? >,? a ? !N*+-? 2*? N? x *? ? ~? ?W*+-? B*? Q? x? ?? ?W???+? ?? ? % . l D [ S ? ? ? Q S % T ? U S V V X ? ? s Y? C L 6 ? = *? *? dl*? 0? ?? ? ? \ O 6 ? @ *? *? Nd*? d*? @? ?? ? ? ` u v ? b +,? ? ,? 8d? ~? ?W+? ? * ? ? ? ( 5 ?
d e ?