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

Public Member Functions

 ValueContext (String values, long productId, long storeId, String logistic)
 
boolean match (String data)
 
Set< String > getValues ()
 
- 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 ValueContext.java.

Constructor & Destructor Documentation

◆ ValueContext()

org.turro.financials.cart.delivery.ValueContext.ValueContext ( String  values,
long  productId,
long  storeId,
String  logistic 
)

Definition at line 33 of file ValueContext.java.

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

Member Function Documentation

◆ getValues()

Set<String> org.turro.financials.cart.delivery.ValueContext.getValues ( )

Definition at line 43 of file ValueContext.java.

43  {
44  return values;
45  }

◆ match()

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

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

Definition at line 39 of file ValueContext.java.

39  {
40  return values.contains(data);
41  }

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