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;
36 this.contact = contact;
52 if(a.getDescription().equalsIgnoreCase(key.toString())) {
61 throw new UnsupportedOperationException(
"Not supported yet.");
67 if(a.getDescription().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 Address> m) {
86 throw new UnsupportedOperationException(
"Not supported yet.");
91 throw new UnsupportedOperationException(
"Not supported yet.");
96 Set<String>
set =
new HashSet<>();
98 set.add(a.getDescription());
105 Collection<Address> list =
new ArrayList<>();
114 HashSet<Entry<String, Address>>
set =
new HashSet();
116 set.add(
new Entry<String, Address>() {
118 public String getKey() {
119 return a.getDescription();
127 throw new UnsupportedOperationException(
"Not supported yet.");