-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathContextInfo.java
49 lines (42 loc) · 1011 Bytes
/
ContextInfo.java
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
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.db.mixing;
import sirius.kernel.commons.Value;
/**
* Represents a context info which can be supplied for {@link BaseMapper#find(Class, Object, ContextInfo...)}.
*/
public class ContextInfo {
private String key;
private Value value;
/**
* Creates a new info object for the given key and value.
*
* @param key the key used to pass in
* @param value the value to pass in
*/
public ContextInfo(String key, Value value) {
this.key = key;
this.value = value;
}
/**
* Returns the key of this info.
*
* @return the key of this info
*/
public String getKey() {
return key;
}
/**
* Returns the value of this info.
*
* @return the value of this info
*/
public Value getValue() {
return value;
}
}