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
ConstructorDescriptionCreates a new instanceAlternativeScheme
(String name, String instruction) Creates an instance and sets name and instruction. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the payment instruction for a given bill.getName()
Get the payment scheme nameint
hashCode()
void
setInstruction
(String instruction) Gets the payment instruction for a given billvoid
Sets 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
-