KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > tests > aop > CacheObject


1 package org.jboss.cache.tests.aop;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.HashSet JavaDoc;
5 import java.util.Set JavaDoc;
6
7 /**
8  * Object to bind in cache
9  */

10 public class CacheObject implements Serializable JavaDoc
11 {
12    private String JavaDoc id;
13    private Set JavaDoc identities;
14    
15    public CacheObject(String JavaDoc id)
16    {
17       this.id = id;
18       this.identities = new HashSet JavaDoc();
19    }
20    
21    public String JavaDoc getId()
22    {
23       return id;
24    }
25    
26    public Set JavaDoc getIdentities()
27    {
28       return identities;
29    }
30 }
31
Popular Tags