public abstract class PriceProcessor<T extends Generation> extends Object
| Constructor and Description |
|---|
PriceProcessor(Class<? extends Pricing> type)
Sole constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract Price |
computePrice(T generation)
Compute the price of your template
|
Class<? extends Pricing> |
getPricingType()
Get the Pricing class descriptor (used for reflection)
|
public PriceProcessor(Class<? extends Pricing> type)
type - your Pricing class descriptor. Should extend Pricing.class, but rather your own implementationpublic Class<? extends Pricing> getPricingType()
public abstract Price computePrice(T generation)
generation - your generation object, which will be used to determine your pricingCopyright © 2015. All rights reserved.