/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimeoutMap.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimeoutMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 429 by torben, Fri Oct 9 08:53:03 2009 UTC revision 430 by torben, Fri Oct 9 09:06:43 2009 UTC
# Line 1  Line 1 
1  package dk.thoerup.traininfoservice.banedk;  package dk.thoerup.traininfoservice.banedk;
2    
3  import java.util.concurrent.ConcurrentHashMap;  import java.util.ArrayList;
4  import java.util.Collection;  import java.util.Collection;
5  import java.util.Map;  import java.util.Map;
6  import java.util.Set;  import java.util.Set;
7    import java.util.concurrent.ConcurrentHashMap;
8    
9    
10    
# Line 43  public class TimeoutMap<K,V> implements Line 44  public class TimeoutMap<K,V> implements
44    
45          @Override          @Override
46          public boolean containsValue(Object arg0) {          public boolean containsValue(Object arg0) {
47                  //TODO someday implement this                  return values().contains(arg0);        
                 throw new UnsupportedOperationException();  
                   
48          }          }
49    
50          @Override          @Override
# Line 66  public class TimeoutMap<K,V> implements Line 65  public class TimeoutMap<K,V> implements
65    
66          @Override          @Override
67          public void putAll(Map<? extends K, ? extends V> arg0) {          public void putAll(Map<? extends K, ? extends V> arg0) {
68                  //TODO someday implement this                  for(K key : arg0.keySet()) {
69                  throw new UnsupportedOperationException();                          this.put(key, arg0.get(key) );
70                    }
71          }          }
72    
73          @Override          @Override
# Line 82  public class TimeoutMap<K,V> implements Line 82  public class TimeoutMap<K,V> implements
82    
83          @Override          @Override
84          public Collection<V> values() {          public Collection<V> values() {
85                  //TODO someday implement this                  ArrayList<V> values = new ArrayList<V>();
86                  throw new UnsupportedOperationException();                  for (CacheItem<V> item : cache.values()) {
87                            values.add( item.value );
88                    }
89                    
90                    return values;
91    
92          }          }
93    
94          @Override          @Override

Legend:
Removed from v.429  
changed lines
  Added in v.430

  ViewVC Help
Powered by ViewVC 1.1.20