- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file StreetItem.java.
◆ StreetItem()
org.turro.financials.cart.delivery.StreetItem.StreetItem |
( |
String |
city, |
|
|
String |
zipcode, |
|
|
String |
street, |
|
|
Range< Integer > |
even, |
|
|
Range< Integer > |
odd |
|
) |
| |
◆ getCity()
String org.turro.financials.cart.delivery.StreetItem.getCity |
( |
| ) |
|
◆ getEven()
Range<Integer> org.turro.financials.cart.delivery.StreetItem.getEven |
( |
| ) |
|
◆ getOdd()
Range<Integer> org.turro.financials.cart.delivery.StreetItem.getOdd |
( |
| ) |
|
◆ getStreet()
String org.turro.financials.cart.delivery.StreetItem.getStreet |
( |
| ) |
|
◆ getZipcode()
String org.turro.financials.cart.delivery.StreetItem.getZipcode |
( |
| ) |
|
◆ matches()
boolean org.turro.financials.cart.delivery.StreetItem.matches |
( |
String |
search | ) |
|
Definition at line 100 of file StreetItem.java.
101 return street.matches(
".*" + search +
".*");
◆ parseLine()
static StreetItem org.turro.financials.cart.delivery.StreetItem.parseLine |
( |
String |
line | ) |
|
|
static |
Definition at line 37 of file StreetItem.java.
38 String[] fields = line.split(
"\\s*,\\s*");
39 if(fields.length >= 5) {
41 String street = fields[2];
42 Matcher matcher = PREFIX.matcher(street);
44 street = matcher.group(2) +
" " + matcher.group(1);
46 Range even = parseRange(fields[3]);
47 Range odd = parseRange(fields[4]);
48 return new StreetItem(fields[0], fields[1], street, even, odd);
StreetItem(String city, String zipcode, String street, Range< Integer > even, Range< Integer > odd)
The documentation for this class was generated from the following file: