-
1. Re: Difference
biswajit_java Mar 20, 2006 5:56 AM (in response to biswajit_java)Hi Brian,
Just find the two methods
(1)public java.lang.Object get(java.lang.String fqn,
java.lang.Object key)
throws CacheException
(2)public java.lang.Object get(Fqn fqn,
java.lang.Object key)
throws CacheException
I think in both the two case i will get same output.
However if you think different output will come then pliz tell me the difference between String fqn and Fqn fqn.
Thanks in advance.
Regards,
Biswajit... -
2. Re: Difference
manik Mar 20, 2006 9:46 AM (in response to biswajit_java)From the codebase:
public Object get(String fqn, Object key) throws CacheException { return get(Fqn.fromString(fqn), key); }
Hope that answers your question. :-) -
3. Re: Difference
biswajit_java Mar 20, 2006 9:56 AM (in response to biswajit_java)hi manik,
thanks for ur reply.
now i have got the answer.
regards,
Biswajit. -
4. Re: Difference
biswajit_java Mar 20, 2006 10:16 AM (in response to biswajit_java)hi Manik,
Again sorry to distrub you.
(1)public void put(Fqn fqn,
java.util.Map data)
throws CacheException
(2)public java.lang.Object put(java.lang.String fqn,
java.lang.Object key,
java.lang.Object value)
throws CacheException
the above two methods are same or not?
i think they are same.
in the 1st case internally we setting the key and value to instance of map and passing map as parameter.
in the 2nd case we are directly passing the key and value as parameter.
just reply me and make my doubt clear.
thanks in advance.
regards,
Biswajit...