4 Replies Latest reply on Mar 20, 2006 10:16 AM by biswajit_java

    Difference

      Hi Brian,

      Could you pliz tell me the difference between String fqn and Fqn fqn?
      Could you give me reply on this topic by giving one example.

      Thanks in advance.

      Regards,
      Biswajit...

        • 1. Re: Difference

          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

            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

              hi manik,

              thanks for ur reply.
              now i have got the answer.

              regards,
              Biswajit.

              • 4. Re: Difference

                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...