net.sf.plausj.bank.german.strategy.util
Class Strategy16AlikeHelper

java.lang.Object
  extended by net.sf.plausj.bank.german.strategy.util.Strategy16AlikeHelper

public class Strategy16AlikeHelper
extends java.lang.Object

Helper methods for Strategy16 alike strategies

Author:
ninan

Constructor Summary
Strategy16AlikeHelper()
           
 
Method Summary
static int calculateSum(AccountCode accountCode, int[] multiplicators)
          Calculates the sum of the digit iteration
static CheckDigit getCheckDigit(AccountCode accountCode, int sum, int defaultPos, int firstEqual, int secondEqual)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Strategy16AlikeHelper

public Strategy16AlikeHelper()
Method Detail

calculateSum

public static int calculateSum(AccountCode accountCode,
                               int[] multiplicators)
Calculates the sum of the digit iteration

Parameters:
accountCode - The account code to use
multiplicators - The multiplicators
Returns:
The sum

getCheckDigit

public static CheckDigit getCheckDigit(AccountCode accountCode,
                                       int sum,
                                       int defaultPos,
                                       int firstEqual,
                                       int secondEqual)


Copyright © 2005-2007 null. All Rights Reserved.