EMMA Coverage Report (generated Tue Oct 27 11:32:50 PDT 2009) |
---|
[all classes][net.spy.memcached.ops] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
OperationStatus.java | 100% (1/1) | 100% (4/4) | 100% (32/32) | 100% (7/7) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class OperationStatus | 100% (1/1) | 100% (4/4) | 100% (32/32) | 100% (7/7) |
OperationStatus (boolean, String): void | 100% (1/1) | 100% (9/9) | 100% (4/4) | |
getMessage (): String | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
isSuccess (): boolean | 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.ops; |
2 | |
3 | /** |
4 | * Status indicator. |
5 | */ |
6 | public class OperationStatus { |
7 | |
8 | private final boolean isSuccess; |
9 | private final String message; |
10 | |
11 | public OperationStatus(boolean success, String msg) { |
12 | super(); |
13 | isSuccess = success; |
14 | message = msg; |
15 | } |
16 | |
17 | /** |
18 | * Does this status indicate success? |
19 | */ |
20 | public boolean isSuccess() { |
21 | return isSuccess; |
22 | } |
23 | |
24 | /** |
25 | * Get the message included as part of this status. |
26 | */ |
27 | public String getMessage() { |
28 | return message; |
29 | } |
30 | |
31 | @Override |
32 | public String toString() { |
33 | return "{OperationStatus success=" + isSuccess + ": " + message + "}"; |
34 | } |
35 | } |
[all classes][net.spy.memcached.ops] |
EMMA 2.0.5312 (C) Vladimir Roubtsov |