{"id":23049989,"url":"https://github.com/nojronatron/java-generics-practice","last_synced_at":"2025-04-03T03:26:44.039Z","repository":{"id":236617184,"uuid":"609422272","full_name":"nojronatron/java-generics-practice","owner":"nojronatron","description":"Follow documented methods to create and utilize generics in Java.","archived":false,"fork":false,"pushed_at":"2023-03-04T05:50:01.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T17:29:20.167Z","etag":null,"topics":["generic-types","generics","java","object-oriented-programming"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nojronatron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-04T05:47:46.000Z","updated_at":"2023-03-08T19:03:58.000Z","dependencies_parsed_at":"2024-04-28T03:40:36.363Z","dependency_job_id":"757aa574-fb24-40f9-b662-643acc6b5ea0","html_url":"https://github.com/nojronatron/java-generics-practice","commit_stats":null,"previous_names":["nojronatron/java-generics-practice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojronatron%2Fjava-generics-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojronatron%2Fjava-generics-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojronatron%2Fjava-generics-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojronatron%2Fjava-generics-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nojronatron","download_url":"https://codeload.github.com/nojronatron/java-generics-practice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246930189,"owners_count":20856557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generic-types","generics","java","object-oriented-programming"],"created_at":"2024-12-15T23:18:33.690Z","updated_at":"2025-04-03T03:26:44.012Z","avatar_url":"https://github.com/nojronatron.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenericsPractice Project\n\nFollowing the Oracle Java Docs [Q and E](https://docs.oracle.com/javase/tutorial/java/generics/QandE/generics-questions.html), create code and tests that will validate learnings and answer ending Quiz questions.\n\n## Takeaways\n\n- An array is denoted by `[]` following a Type, which can be any primitive or Class: `Integer[] india = {1,2,3,}` is functionally similar to `int[] india = {1,2,3,}` but probably takes more memory storage.\n- The Java class Arrays is a functional class that help work with Array types and Lists.\n- The Java class Array has static methods used to create and access Java arrays.\n- `List\u003cE\u003e` is a Collection Interface that extends `Iterable\u003cE\u003e`. Brackets `[]` array does not have these interface features.\n- `ArrayList\u003cE\u003e` implements `List\u003cE\u003e` and is a fully instantiatable Class. Should not be confused with brackets `[]` arrays.\n- Generic functions do *not* require a containing class to be generic! Use `public static \u003cT\u003e void setMethod(){}` to set the method with a generic type placeholder.\n- Leveraging wildcard `?` can be tricky due to inheritance, and there are situations where using it will cause problems during run time.\n\n## Resources\n\nOracle's [Java Tutorials](https://docs.oracle.com/javase/tutorial/java/generics/index.html)\n\nBaeldung: [Java Generics](https://www.baeldung.com/java-generics)\n\nBaeldung: [Comparing Objects in Java](https://www.baeldung.com/java-comparing-objects)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnojronatron%2Fjava-generics-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnojronatron%2Fjava-generics-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnojronatron%2Fjava-generics-practice/lists"}