|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
CacheObject.java | - | 75% | 66.7% | 71.4% |
|
1 | package org.jboss.cache.pojo.test; | |
2 | ||
3 | import java.io.Serializable; | |
4 | import java.util.HashSet; | |
5 | import java.util.Set; | |
6 | ||
7 | /** | |
8 | * Object to bind in cache | |
9 | */ | |
10 | public class CacheObject implements Serializable | |
11 | { | |
12 | private String id; | |
13 | private Set identities; | |
14 | ||
15 | 3 | public CacheObject(String id) |
16 | { | |
17 | 3 | this.id = id; |
18 | 3 | this.identities = new HashSet(); |
19 | } | |
20 | ||
21 | 4 | public String getId() |
22 | { | |
23 | 4 | return id; |
24 | } | |
25 | ||
26 | 0 | public Set getIdentities() |
27 | { | |
28 | 0 | return identities; |
29 | } | |
30 | } |
|