Practice Generics in Java, with Geospatial class creation examples.
Using Mappable interface implmented by Abstract classes Point and Line.
Implement concrete classes Park and River extended by the abstract classes Point and Line.
Create a Generic class Layer that has a upper bound of Mappable.
The layer holds elements in a list.
Example uses an array of instances of Parks and Rivers. Layer is created by interating over each instance.
More instances can be added using addElements.
renderLayer() just calls the overridden methods in Point and Line.
-
Notifications
You must be signed in to change notification settings - Fork 0
gavinhon/GenericsMappable
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published