Class AlternativeScheme

  • All Implemented Interfaces:
    java.io.Serializable

    public class AlternativeScheme
    extends java.lang.Object
    implements java.io.Serializable
    Alternative payment scheme instructions
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AlternativeScheme()
      Creates a new instance
      AlternativeScheme​(java.lang.String name, java.lang.String instruction)
      Creates an instance and sets name and instruction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      java.lang.String getInstruction()
      Gets the payment instruction for a given bill.
      java.lang.String getName()
      Get the payment scheme name
      int hashCode()
      void setInstruction​(java.lang.String instruction)
      Gets the payment instruction for a given bill
      void setName​(java.lang.String name)
      Sets the payment scheme name
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AlternativeScheme

        public AlternativeScheme()
        Creates a new instance
      • AlternativeScheme

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

      • getName

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

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

        public java.lang.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​(java.lang.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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object