Class AlternativeScheme

java.lang.Object
net.codecrete.qrbill.generator.AlternativeScheme
All Implemented Interfaces:
Serializable

public class AlternativeScheme extends Object implements Serializable
Alternative payment scheme instructions
See Also:
  • Constructor Details

    • AlternativeScheme

      public AlternativeScheme()
      Creates a new instance
    • AlternativeScheme

      public AlternativeScheme(String name, String instruction)
      Creates an instance and sets name and instruction.
      Parameters:
      name - scheme name
      instruction - payment instruction
  • Method Details

    • getName

      public String getName()
      Get the payment scheme name
      Returns:
      scheme name
    • setName

      public void setName(String name)
      Sets the payment scheme name
      Parameters:
      name - scheme name
    • getInstruction

      public String getInstruction()
      Gets the payment instruction for a given bill.

      The instruction consists of a two letter abbreviation for the scheme, a separator characters and a sequence of parameters (separated by the character at index 2).

      Returns:
      instruction
    • setInstruction

      public void setInstruction(String instruction)
      Gets the payment instruction for a given bill

      The instruction consists of a two letter abbreviation for the scheme, a separator characters and a sequence of parameters (separated by the character at index 2).

      Parameters:
      instruction - instruction
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object