Skip to content

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?

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