-
Notifications
You must be signed in to change notification settings - Fork 510
Expand file tree
/
Copy pathIAttributeKeyValueMap.java
More file actions
64 lines (55 loc) · 1.17 KB
/
IAttributeKeyValueMap.java
File metadata and controls
64 lines (55 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.attribute.interfaces;
import java.util.List;
import com.exceptions.DataFormatIncorrectException;
// TODO: Auto-generated Javadoc
/**
* The Interface IAttributeKeyValueMap.
*
* @param <K> the key type
* @param <V> the value type
*/
public interface IAttributeKeyValueMap<K, V> {
/**
* Gets the.
*
* @param key the key
* @return the v
*/
V get(K key);
/**
* Put.
*
* @param key the key
* @param value the value
* @throws DataFormatIncorrectException the data format incorrect exception
*/
void put(K key, V value) throws DataFormatIncorrectException;
/**
* Contains key.
*
* @param key the key
* @return true, if successful
*/
boolean containsKey(K key);
/**
* Checks if is valid type.
*
* @param value the value
* @return true, if is valid type
*/
boolean isValidType(V value);
/**
* Gets the keys with values.
*
* @param value the value
* @return the keys with values
* @throws DataFormatIncorrectException the data format incorrect exception
*/
List<K> getkeysWithValues(V value) throws DataFormatIncorrectException;
/**
* Delete key.
*
* @param key the key
*/
void deleteKey(K key);
}