gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / util / MapWithGetItemByKeySizeGetKeysContainsKeyAndSetItem.java @ 2641
History | View | Annotate | Download (636 Bytes)
1 | 2641 | omartinez | /*
|
---|---|---|---|
2 | * To change this license header, choose License Headers in Project Properties.
|
||
3 | * To change this template file, choose Tools | Templates
|
||
4 | * and open the template in the editor.
|
||
5 | */
|
||
6 | package org.gvsig.tools.util; |
||
7 | |||
8 | import java.util.ArrayList; |
||
9 | import java.util.HashMap; |
||
10 | import java.util.List; |
||
11 | |||
12 | /**
|
||
13 | *
|
||
14 | * @author osc
|
||
15 | */
|
||
16 | public class MapWithGetItemByKeySizeGetKeysContainsKeyAndSetItem<K, T> extends HashMap<K, T> implements GetItemByKeyWithSizeGetKeysContainsKeyAndSetItem<K, T>{ |
||
17 | |||
18 | @Override
|
||
19 | public List<K> getKeys() { |
||
20 | return new ArrayList(this.keySet()); |
||
21 | } |
||
22 | |||
23 | @Override
|
||
24 | public void set(K key, T value) { |
||
25 | put(key, value); |
||
26 | } |
||
27 | |||
28 | |||
29 | } |