Hello,
I organized my project using a standard approach:
src/client
src/server
src/shared
I put my model classes into src/shared because they are used in RPC
calls. In some of them I generated the equals and hashCode methods
using eclipse. Then when I run my app I have an exception about
Float.floatToIntBits() method that does not exist in Float. I
understand why I got this exception because that method is not
supported client side. So I was wondering how I could replace that
method.
Snippet of hashCode(); alpha and beta are defined as float.
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + Float.floatToIntBits(alpha);
result = prime * result + Float.floatToIntBits(beta);
result = prime * result
+ ((timestamp == null) ? 0 : timestamp.hashCode());
return result;
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.