-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the use of generic type with Interface (#149)
* created interface EventInterface ``` created EventInterface with methods: DateTime getDate() String getTitle() Widget getIcon() Widget getDot() ``` Overrided method in class Event, now implements EventInterface * Replaced Event with T extends EventInterface ``` replaced all class Event with T now we can use any class that implements the interface ```
- Loading branch information
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters