Class MoronStoreVoucher

java.lang.Object
de.calamanari.pk.factorymethod.AbstractVoucher
de.calamanari.pk.factorymethod.MoronStoreVoucher

public class MoronStoreVoucher
extends AbstractVoucher
MoronStore Voucher (Voucher from the MoronStore Worldwide Company) is a concrete product in this FACTORY METHOD example scenario.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    MoronStoreVoucher​(java.lang.String id, java.lang.String displayCode, java.lang.String firstName, java.lang.String lastName, double value)
    Creates new MoronStore Voucher
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getId()
    Returns this voucher's ID
    java.lang.String getVoucherDisplayCode()
    Returns the human readable code of this voucher, the user will enter when applying it to an order.

    Methods inherited from class de.calamanari.pk.factorymethod.AbstractVoucher

    getFirstName, getLastName, getValue, setFirstName, setLastName, setValue, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MoronStoreVoucher

      public MoronStoreVoucher​(java.lang.String id, java.lang.String displayCode, java.lang.String firstName, java.lang.String lastName, double value)
      Creates new MoronStore Voucher
      Parameters:
      id - voucher's id
      displayCode - human readable display code
      firstName - first name of the voucher owner
      lastName - last name of the voucher owner
      value - this voucher's value
  • Method Details