I believe the get() and set() will be optimized out by the JIT. There is no speed penalty.
That said, when I am using a class that is equivalent to a C struct, and only use it locally, I just make the variables public. It is really much cleaner IMHO. Though I use only Java now, I was a C++...