Package net.codecrete.qrbill.generator
Class AlternativeScheme
- java.lang.Object
-
- net.codecrete.qrbill.generator.AlternativeScheme
-
public class AlternativeScheme extends java.lang.ObjectAlternative payment scheme instructions
-
-
Constructor Summary
Constructors Constructor Description AlternativeScheme()Creates a new instanceAlternativeScheme(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 booleanequals(java.lang.Object o)java.lang.StringgetInstruction()Gets the payment instruction for a given bill.java.lang.StringgetName()Get the payment scheme nameinthashCode()voidsetInstruction(java.lang.String instruction)Gets the payment instruction for a given billvoidsetName(java.lang.String name)Sets the payment scheme name 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).java.lang.StringtoString()
-
-
-
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 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:
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- Parameters:
instruction- instruction
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-