Hello ,

How do I write a deserializer for an Immutable Class .

the class is as  follows

Class  GloballyUniqueIdentifier {

    public String domainName;
    public HashMap keyValuePairs;
    public long firstSixtyFourBit;
    public long nextSixtyFourBits;

   public GloballyUniqueIdentifier(String s, HashMap hm,longl1,longl2){
         domainName=s;
         hm=keyValuePairs;
       firstSixtyFourBit=l1;
       nextSixtyFourBit=l2;

   }

  public (String s, long l1,long l2 ){
        domainName=s;
         firstSixtyFourBit=l1;
        nextSixtyFourBit=l2;
       //parse the domainName and populate the keyvalue pairs

  }

 //getters
  public String  getDomainName (){ ...} //and so on
   getKeyValuePairs(){...}
   getfirstSixtyFourBits() {....}
   getNextSixtyFourBits() {....}


}

ThanX
Deepth
--
"You have Brains in Your Head,You have feet in your Shoes"
"You can steer yourself any direction you choose"

begin:vcard 
n:Dinesan;Deepth
tel;cell:(+91)98402 41443
tel;home:(+91)44 2570212
tel;work:(+91)44 2435321
x-mozilla-html:FALSE
org:AdventNet ;Market Engineering
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Deepth Dinesan
end:vcard

Reply via email to