EMMA Coverage Report (generated Tue Oct 27 11:32:50 PDT 2009) |
---|
[all classes][net.spy.memcached] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
CASValue.java | 100% (1/1) | 100% (4/4) | 100% (32/32) | 100% (7/7) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class CASValue | 100% (1/1) | 100% (4/4) | 100% (32/32) | 100% (7/7) |
CASValue (long, Object): void | 100% (1/1) | 100% (9/9) | 100% (4/4) | |
getCas (): long | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
getValue (): Object | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
toString (): String | 100% (1/1) | 100% (17/17) | 100% (1/1) |
1 | package net.spy.memcached; |
2 | |
3 | /** |
4 | * A value with a CAS identifier. |
5 | */ |
6 | public class CASValue<T> { |
7 | private final long cas; |
8 | private final T value; |
9 | |
10 | /** |
11 | * Construct a new CASValue with the given identifer and value. |
12 | * |
13 | * @param c the CAS identifier |
14 | * @param v the value |
15 | */ |
16 | public CASValue(long c, T v) { |
17 | super(); |
18 | cas=c; |
19 | value=v; |
20 | } |
21 | |
22 | /** |
23 | * Get the CAS identifier. |
24 | */ |
25 | public long getCas() { |
26 | return cas; |
27 | } |
28 | |
29 | /** |
30 | * Get the object value. |
31 | */ |
32 | public T getValue() { |
33 | return value; |
34 | } |
35 | |
36 | @Override |
37 | public String toString() { |
38 | return "{CasValue " + cas + "/" + value + "}"; |
39 | } |
40 | |
41 | } |
[all classes][net.spy.memcached] |
EMMA 2.0.5312 (C) Vladimir Roubtsov |