18 package org.turro.contacts;
20 import java.util.ArrayList;
21 import java.util.Collection;
22 import java.util.HashSet;
24 import java.util.Map.Entry;
31 public class FieldMap implements Map<String, FieldValue> {
36 this.contact = contact;
52 if(getKeyString(fv).equalsIgnoreCase(key.toString())) {
61 throw new UnsupportedOperationException(
"Not supported yet.");
67 if(getKeyString(fv).equalsIgnoreCase(key.toString())) {
76 throw new UnsupportedOperationException(
"Not supported yet.");
81 throw new UnsupportedOperationException(
"Not supported yet.");
85 public void putAll(Map<? extends String, ? extends FieldValue> m) {
86 throw new UnsupportedOperationException(
"Not supported yet.");
91 throw new UnsupportedOperationException(
"Not supported yet.");
96 Set<String>
set =
new HashSet<>();
98 set.add(getKeyString(fv));
105 Collection<FieldValue> list =
new ArrayList<>();
114 HashSet<Entry<String, FieldValue>>
set =
new HashSet();
116 set.add(
new Entry<String, FieldValue>() {
118 public String getKey() {
119 return getKeyString(fv);
127 throw new UnsupportedOperationException(
"Not supported yet.");
134 private static String getKeyString(
FieldValue fv) {