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

Public Member Functions

 StreetMapContext (String streetMapFile, long productId, long storeId, String logistic)
 
boolean match (String data)
 
List< StreetItemgetStreets ()
 
List< StreetItemgetStreets (String search)
 
- 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 36 of file StreetMapContext.java.

Constructor & Destructor Documentation

◆ StreetMapContext()

org.turro.financials.cart.delivery.StreetMapContext.StreetMapContext ( String  streetMapFile,
long  productId,
long  storeId,
String  logistic 
)

Definition at line 40 of file StreetMapContext.java.

Member Function Documentation

◆ getStreets() [1/2]

List<StreetItem> org.turro.financials.cart.delivery.StreetMapContext.getStreets ( )

Definition at line 50 of file StreetMapContext.java.

50  {
51  return streets;
52  }

◆ getStreets() [2/2]

List<StreetItem> org.turro.financials.cart.delivery.StreetMapContext.getStreets ( String  search)

Definition at line 54 of file StreetMapContext.java.

54  {
55  return streets.stream().filter(street -> street.matches(search)).collect(Collectors.toList());
56  }

◆ match()

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

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

Definition at line 46 of file StreetMapContext.java.

46  {
47  return false;
48  }

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