@@ -563,6 +563,10 @@ CardTransactionManager prepareReadRecordsPartially(
563
563
* #processClosing()}, the counter must have been read previously otherwise an {@link
564
564
* IllegalStateException} will be raised during the execution of {@link #processClosing()}.
565
565
*
566
+ * <p>Note 3: if several counters of the same file have to be incremented at the same time of the
567
+ * transaction, it is recommended to use the method {@link #prepareIncreaseCounters(byte, Map)}
568
+ * for optimization reasons.
569
+ *
566
570
* @param sfi SFI of the EF to select.
567
571
* @param counterNumber The number of the counter (must be zero in case of a simulated counter).
568
572
* @param incValue Value to add to the counter (defined as a positive int {@code <=} 16777215
@@ -574,8 +578,10 @@ CardTransactionManager prepareReadRecordsPartially(
574
578
CardTransactionManager prepareIncreaseCounter (byte sfi , int counterNumber , int incValue );
575
579
576
580
/**
577
- * Schedules the execution of a <b>Increase Multiple</b> command to increase multiple target
578
- * counters at the same time.
581
+ * Schedules the execution of a <b>Increase Multiple</b> command or multiple <b>Increase</b>
582
+ * commands to increase multiple target counters at the same time.
583
+ *
584
+ * <p>The decision to execute one or the other command is made according to the type of card.
579
585
*
580
586
* <p>Note 1: {@link CalypsoCard} is updated with the provided input data.
581
587
*
@@ -587,8 +593,6 @@ CardTransactionManager prepareReadRecordsPartially(
587
593
* @param counterNumberToIncValueMap The map containing the counter numbers to be incremented and
588
594
* their associated increment values.
589
595
* @return The current instance.
590
- * @throws UnsupportedOperationException If the increase multiple command is not available for
591
- * this card.
592
596
* @throws IllegalArgumentException If one of the provided argument is out of range or if the map
593
597
* is null or empty.
594
598
* @since 1.1.0
@@ -605,6 +609,10 @@ CardTransactionManager prepareIncreaseCounters(
605
609
* #processClosing()}, the counter must have been read previously otherwise an {@link
606
610
* IllegalStateException} will be raised during the execution of {@link #processClosing()}.
607
611
*
612
+ * <p>Note 3: if several counters of the same file have to be decremented at the same time of the
613
+ * transaction, it is recommended to use the method {@link #prepareDecreaseCounters(byte, Map)}
614
+ * for optimization reasons.
615
+ *
608
616
* @param sfi SFI of the EF to select.
609
617
* @param counterNumber The number of the counter (must be zero in case of a simulated counter).
610
618
* @param decValue Value to subtract to the counter (defined as a positive int {@code <=} 16777215
@@ -616,8 +624,10 @@ CardTransactionManager prepareIncreaseCounters(
616
624
CardTransactionManager prepareDecreaseCounter (byte sfi , int counterNumber , int decValue );
617
625
618
626
/**
619
- * Schedules the execution of a <b>Decrease Multiple</b> command to decrease multiple target
620
- * counters at the same time.
627
+ * Schedules the execution of a <b>Decrease Multiple</b> command or multiple <b>Decrease</b>
628
+ * commands to decrease multiple target counters at the same time.
629
+ *
630
+ * <p>The decision to execute one or the other command is made according to the type of card.
621
631
*
622
632
* <p>Note 1: {@link CalypsoCard} is updated with the provided input data.
623
633
*
@@ -629,8 +639,6 @@ CardTransactionManager prepareIncreaseCounters(
629
639
* @param counterNumberToDecValueMap The map containing the counter numbers to be decremented and
630
640
* their associated decrement values.
631
641
* @return The current instance.
632
- * @throws UnsupportedOperationException If the decrease multiple command is not available for
633
- * this card.
634
642
* @throws IllegalArgumentException If one of the provided argument is out of range or if the map
635
643
* is null or empty.
636
644
* @since 1.1.0
@@ -833,7 +841,7 @@ CardTransactionManager prepareDecreaseCounters(
833
841
* CalypsoCard#getSvDebitLogAllRecords()}.
834
842
*
835
843
* @return The current instance.
836
- * @throws UnsupportedOperationException If the application is not of type Stored Value .
844
+ * @throws UnsupportedOperationException If the SV feature is not available for this card .
837
845
* @since 1.0.0
838
846
*/
839
847
CardTransactionManager prepareSvReadAllLogs ();
@@ -941,7 +949,7 @@ CardTransactionManager prepareDecreaseCounters(
941
949
*
942
950
* @param pin The PIN code value (4-byte long byte array).
943
951
* @return The current instance.
944
- * @throws UnsupportedOperationException If the PIN feature is not available for this card
952
+ * @throws UnsupportedOperationException If the PIN feature is not available for this card.
945
953
* @throws IllegalArgumentException If the provided argument is out of range.
946
954
* @throws IllegalStateException If commands have been prepared before invoking this process
947
955
* method.
0 commit comments