BrightSide Workbench Full Report + Source Code
org.turro.financials.cart.delivery.ProvinceContext Class Reference
Inheritance diagram for org.turro.financials.cart.delivery.ProvinceContext:
Collaboration diagram for org.turro.financials.cart.delivery.ProvinceContext:

Public Member Functions

 ProvinceContext (String provinces, long productId, long storeId, String logistic)
 
boolean match (String data)
 
- Public Member Functions inherited from org.turro.financials.cart.delivery.AbstractDeliveryContext
 AbstractDeliveryContext (Long productId, Long storeId, String logistic)
 
IContact getLogistic ()
 
Contract getStore ()
 
Product getDeliveryProduct ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.financials.cart.delivery.AbstractDeliveryContext
final Long productId
 
final IContact logistic
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file ProvinceContext.java.

Constructor & Destructor Documentation

◆ ProvinceContext()

org.turro.financials.cart.delivery.ProvinceContext.ProvinceContext ( String  provinces,
long  productId,
long  storeId,
String  logistic 
)

Definition at line 33 of file ProvinceContext.java.

33  {
34  super(productId, storeId, logistic);
35  this.provinces = new HashSet<>(Arrays.asList(provinces.split(",")));
36  }

Member Function Documentation

◆ match()

boolean org.turro.financials.cart.delivery.ProvinceContext.match ( String  data)

Implements org.turro.financials.cart.delivery.DeliveryContext.

Definition at line 39 of file ProvinceContext.java.

39  {
40  return provinces.contains(data) || provinces.contains("*");
41  }

The documentation for this class was generated from the following file: