Skip to content

Commit

Permalink
added isPercentage helper method in field 37K + javadoc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zubri committed May 6, 2024
1 parent 95bb956 commit 909b517
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,5 +606,18 @@ public static Field37K fromJson(final String json) {
return field;
}

/**
* Constant with the literal value PCT
* @since 9.4.16
*/
public static final String PERCENTAGE = "PCT";

/**
* This fields admits the literal PCT as a CurrencyCode meaning the amount is a percentage.
* @return true if the currency code is PCT, false otherwise
* @since 9.4.16
*/
public boolean isPercentage() {
return PERCENTAGE.equals(getComponent1());
}
}

0 comments on commit 909b517

Please sign in to comment.