Skip to content
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

Feature/con 650 #389

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Feature/con 650 #389

wants to merge 8 commits into from

Conversation

robertcli
Copy link

@jtnelson Let me know if there's anything missing. In the video kwam sent you I expressed concern that it felt very quick?

return new Point(x, y);
}

public float getY() {
Copy link
Member

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() {
Copy link
Member

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 {

/**
Copy link
Member

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");
Copy link
Member

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?

@@ -48,7 +48,8 @@ enum Operator {
BETWEEN = 9,
LINKS_TO = 10,
LIKE = 11,
NOT_LIKE = 12
NOT_LIKE = 12,
WITHIN = 13
Copy link
Member

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;
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants