Package net.codecrete.qrbill.generator
Class AlternativeScheme
java.lang.Object
net.codecrete.qrbill.generator.AlternativeScheme
- All Implemented Interfaces:
Serializable
Alternative payment scheme instructions
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instanceAlternativeScheme(String name, String instruction) Creates an instance and sets name and instruction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the payment instruction for a given bill.getName()Get the payment scheme nameinthashCode()voidsetInstruction(String instruction) Gets the payment instruction for a given billvoidSets the payment scheme nametoString()
-
Constructor Details
-
AlternativeScheme
public AlternativeScheme()Creates a new instance -
AlternativeScheme
Creates an instance and sets name and instruction.- Parameters:
name- scheme nameinstruction- payment instruction
-
-
Method Details
-
getName
Get the payment scheme name- Returns:
- scheme name
-
setName
Sets the payment scheme name- Parameters:
name- scheme name
-
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
Gets the payment instruction for a given billThe 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
-
hashCode
public int hashCode() -
toString
-