-
Notifications
You must be signed in to change notification settings - Fork 233
Feature/con 650 #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Feature/con 650 #389
Conversation
…hat's a different branch...
return new Point(x, y); | ||
} | ||
|
||
public float getY() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just name this method y()
return y; | ||
} | ||
|
||
public float getX() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just name this method x()
@Immutable | ||
public final class Point { | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There needs to be more javadoc in this class. Please see other classes in the codebase for conventions on how methods, etc javadoced
/** | ||
* Valid latitude values are between -90 and 90, both inclusive. | ||
*/ | ||
public static float MIN_Y = Float.valueOf("-90.0000"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are there min and max values if a Point is generic as opposed to being lat/long?
interface/shared.thrift
Outdated
@@ -48,7 +48,8 @@ enum Operator { | |||
BETWEEN = 9, | |||
LINKS_TO = 10, | |||
LIKE = 11, | |||
NOT_LIKE = 12 | |||
NOT_LIKE = 12, | |||
WITHIN = 13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this, since this PR is not tackling operators for Points
public static float MIN_X = Float.valueOf("-180.0000"); | ||
public static float MAX_X = Float.valueOf("180.0000"); | ||
|
||
private float x; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be doubles instead of floats
@jtnelson Let me know if there's anything missing. In the video kwam sent you I expressed concern that it felt very quick?