aboutsummaryrefslogtreecommitdiff
path: root/java/src/com/android/i18n/addressinput/StandardChecks.java
diff options
context:
space:
mode:
authorLara Scheidegger <lararennie@google.com>2014-10-22 16:46:17 +0200
committerLara Scheidegger <lararennie@google.com>2014-10-22 16:46:17 +0200
commit29761c802c0df839dfbfae7dd9c77f66278bab48 (patch)
tree8c55d7d533b1bf96b59d4a83a401c19c8aa31b6e /java/src/com/android/i18n/addressinput/StandardChecks.java
parent1548a16dda24f9f3fe5253314569ed346889f12c (diff)
downloadsrc-29761c802c0df839dfbfae7dd9c77f66278bab48.tar.gz
First version of code (tests error)
Diffstat (limited to 'java/src/com/android/i18n/addressinput/StandardChecks.java')
-rw-r--r--java/src/com/android/i18n/addressinput/StandardChecks.java64
1 files changed, 32 insertions, 32 deletions
diff --git a/java/src/com/android/i18n/addressinput/StandardChecks.java b/java/src/com/android/i18n/addressinput/StandardChecks.java
index f243afd..a76591e 100644
--- a/java/src/com/android/i18n/addressinput/StandardChecks.java
+++ b/java/src/com/android/i18n/addressinput/StandardChecks.java
@@ -27,41 +27,41 @@ import java.util.Map;
*/
public class StandardChecks {
- private StandardChecks() {
- }
+ private StandardChecks() {
+ }
- public static final Map<AddressField, List<AddressProblemType>> PROBLEM_MAP;
+ public static final Map<AddressField, List<AddressProblemType>> PROBLEM_MAP;
- static {
- Map<AddressField, List<AddressProblemType>> map =
- new HashMap<AddressField, List<AddressProblemType>>();
+ static {
+ Map<AddressField, List<AddressProblemType>> map =
+ new HashMap<AddressField, List<AddressProblemType>>();
- addToMap(map, AddressField.COUNTRY, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
- addToMap(map, AddressField.ADMIN_AREA, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
- addToMap(map, AddressField.LOCALITY, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
- addToMap(map, AddressField.DEPENDENT_LOCALITY, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
- addToMap(map, AddressField.POSTAL_CODE, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNRECOGNIZED_FORMAT,
- AddressProblemType.MISMATCHING_VALUE);
- addToMap(map, AddressField.STREET_ADDRESS, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD);
- addToMap(map, AddressField.SORTING_CODE, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD);
- addToMap(map, AddressField.ORGANIZATION, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD);
- addToMap(map, AddressField.RECIPIENT, AddressProblemType.USING_UNUSED_FIELD,
- AddressProblemType.MISSING_REQUIRED_FIELD);
+ addToMap(map, AddressField.COUNTRY, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
+ addToMap(map, AddressField.ADMIN_AREA, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
+ addToMap(map, AddressField.LOCALITY, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
+ addToMap(map, AddressField.DEPENDENT_LOCALITY, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNKNOWN_VALUE);
+ addToMap(map, AddressField.POSTAL_CODE, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD, AddressProblemType.UNRECOGNIZED_FORMAT,
+ AddressProblemType.MISMATCHING_VALUE);
+ addToMap(map, AddressField.STREET_ADDRESS, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD);
+ addToMap(map, AddressField.SORTING_CODE, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD);
+ addToMap(map, AddressField.ORGANIZATION, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD);
+ addToMap(map, AddressField.RECIPIENT, AddressProblemType.USING_UNUSED_FIELD,
+ AddressProblemType.MISSING_REQUIRED_FIELD);
- PROBLEM_MAP = Collections.unmodifiableMap(map);
- }
+ PROBLEM_MAP = Collections.unmodifiableMap(map);
+ }
- private static void addToMap(Map<AddressField, List<AddressProblemType>> map,
- AddressField field,
- AddressProblemType... problems) {
- map.put(field, Collections.unmodifiableList(Arrays.asList(problems)));
- }
+ private static void addToMap(Map<AddressField, List<AddressProblemType>> map,
+ AddressField field,
+ AddressProblemType... problems) {
+ map.put(field, Collections.unmodifiableList(Arrays.asList(problems)));
+ }
}