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

Make Point,Polygon,Polyline not final classes #101

Closed
mraad opened this issue Jan 5, 2016 · 1 comment
Closed

Make Point,Polygon,Polyline not final classes #101

mraad opened this issue Jan 5, 2016 · 1 comment
Assignees
Milestone

Comments

@mraad
Copy link
Member

mraad commented Jan 5, 2016

This will enable us to extent the class for another frameworks

@snodnipper
Copy link
Contributor

Perhaps you'd like to wrap these geometries.

For example:

public class MyPoint {
     private Point mEsriPoint;
     public double getX() { {
         return mEsriPoint.getX();
    }
}

That is similar to how we'd work with, say, String, Float, Double classes rather than extending them. You can read more about 'favoring composition over inheritance' in Effective Java, p.81.

@stolstov stolstov added this to the 1.2.2 milestone Jan 19, 2016
@stolstov stolstov mentioned this issue May 20, 2016
@randallwhitman randallwhitman modified the milestones: 2.0.0, 1.2.2 Aug 11, 2017
@alocke alocke closed this as completed Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants