Re: [protobuf] modifying lists within a message

2010-03-17 Thread Ron Reynolds
seems odd that you can delete all via clearXXX() or add via addAllXXX() and addXXX() but not remove a single element by index... well, here's a work-around - if you put a utility class into the same package as the ProtobufMessages generated class it can access the protected

Re: [protobuf] modifying lists within a message

2010-03-17 Thread Ron Reynolds
element from an ArrayList by index...). From: Kenton Varda ken...@google.com To: Ron Reynolds tequila...@ymail.com Cc: protobuf@googlegroups.com Sent: Wed, March 17, 2010 1:32:50 PM Subject: Re: [protobuf] modifying lists within a message Also note that we

Re: [protobuf] Re: Generated hashcode() returns different values across JVM instances?

2011-05-18 Thread Ron Reynolds
the corner-stone of Hash* containers is: (A.equals(B)) = (A.hashCode() == B.hashCode()) for all A, B. tho it's not explicitly stated it would seem to be implied that is within a single JVM. not sure if the code in question maintains that rule within a JVM (if not that's a big deal). if so