|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
SpecialAddress.java | - | 66.7% | 66.7% | 66.7% |
|
1 | /* | |
2 | * JBoss, Home of Professional Open Source | |
3 | * | |
4 | * Distributable under LGPL license. | |
5 | * See terms of license at gnu.org. | |
6 | */ | |
7 | ||
8 | package org.jboss.cache.pojo.test; | |
9 | ||
10 | import java.io.Serializable; | |
11 | ||
12 | /** | |
13 | * Test class for PojoCache. Note that this pojo is both Replicable and Serializable. So | |
14 | * user can choose whether to treat this as a Pojo or just a serializable object. | |
15 | * | |
16 | * @version $Revision: 1.1 $ | |
17 | */ | |
18 | @org.jboss.cache.pojo.annotation.Replicable | |
19 | public class SpecialAddress implements Serializable | |
20 | { | |
21 | String addr = null; | |
22 | ||
23 | 4 | public String getAddr() |
24 | { | |
25 | 4 | return addr; |
26 | } | |
27 | ||
28 | 2 | public void setAddr(String address) |
29 | { | |
30 | 2 | this.addr = address; |
31 | } | |
32 | ||
33 | 0 | public String toString() |
34 | { | |
35 | 0 | return "address=" + getAddr(); |
36 | } | |
37 | ||
38 | // public Object writeReplace() { | |
39 | // return this; | |
40 | // } | |
41 | } |
|