{"id":24021187,"url":"https://github.com/zipcodecore/maven.genericdatastructures","last_synced_at":"2025-04-15T21:16:54.719Z","repository":{"id":147837823,"uuid":"91572792","full_name":"ZipCodeCore/Maven.GenericDataStructures","owner":"ZipCodeCore","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-17T13:34:18.000Z","size":13,"stargazers_count":0,"open_issues_count":31,"forks_count":113,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T21:16:49.945Z","etag":null,"topics":["corejava","corejava-chapter5-section3","corejava-chapter8"],"latest_commit_sha":null,"homepage":null,"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/ZipCodeCore.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":"2017-05-17T12:14:53.000Z","updated_at":"2022-02-03T18:57:33.000Z","dependencies_parsed_at":"2023-04-06T06:46:58.165Z","dependency_job_id":null,"html_url":"https://github.com/ZipCodeCore/Maven.GenericDataStructures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FMaven.GenericDataStructures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FMaven.GenericDataStructures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FMaven.GenericDataStructures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FMaven.GenericDataStructures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZipCodeCore","download_url":"https://codeload.github.com/ZipCodeCore/Maven.GenericDataStructures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249153951,"owners_count":21221330,"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":["corejava","corejava-chapter5-section3","corejava-chapter8"],"created_at":"2025-01-08T12:39:46.687Z","updated_at":"2025-04-15T21:16:54.713Z","avatar_url":"https://github.com/ZipCodeCore.png","language":"Java","readme":"# Generics MicroLabs\nThe microlabs for the Generics chapter are all grouped together.  So, you need to work through them package by package.\nThe following list is the package name followed by a quick description of the assignment.\n1. StackArrayList -- Implement `Stack\u003cE\u003e` to use an ArrayList as a stack.  You need to make the `push`, `pop`, and\n`isEmpty` functions.\n2. StackArray -- Implement `Stack\u003cE\u003e` to use an array as a stack.  You'll need to potentially grow the array in the \n`push` method.  Do this first with an `E[]` array, and then again with an `Object[]` array.  Both should compile\nwithout warnings and pass the tests.\n3. Table -- Implemented for you is Entry\u003cK, V\u003e.  \nImplement Table\u003cK,V\u003e so that it manages an ArrayList of Entry\u003cK,V\u003e.  You must implement\n    * `get` which takes a key and returns either the entry from the ArrayList with that key, or null if none is found.\n    * `put` which takes a key and value and sets the value in the ArrayList to Entry(key, value);\n        * Remember, a key point to exactly one value\n    * `remove` which takes a key and removes it from the ArrayList if it's in there.  It's a void method; no return type.\n4. TableNested -- Take the previous microlab, and make Entry a nested class.  Think about if it'll need to be generic\nor not.\n5. Swap -- Get the test to pass.  Look at the specific values being passed in to help you figure it out.  Modify the\ntests, not the code.\n6. ArrayListCombiner -- Write two methods, `superCombiner` and `extendCombiner`, which each take two arraylists and append\nall of the items from the second to the first.  `superCombiner` should use `? super E` and `extendCombiner` should use \n`? extends E`.\n7. MapFunc -- Make a `map` method that takes an ArrayList and a `Function\u003cT,R\u003e` object and returns an arraylist \ncontaining all of the elements of the first with the function applied to them.\n8. Pair -- This is a multi-step one:\n    1. Create a Pair\u003cE\u003e that stores a pair of elements of type `E`.\n    2. Create two methods, `min` and `max`, that return the largest and smallest of the `Pair`.\n    3. Create a utility class called `Arrays` and, in that, create a method\n    \u003cbr\u003e`public static \u003c___\u003e Pair\u003cE\u003e firstLast(ArrayList\u003c___\u003e a)`\u003cbr\u003e\n    That returns a Pair containing the first and last element of the array.  \u003cbr\u003eNOTE: The `\u003c___\u003e` is there because you\n    need to fill in the blank.\n    4. In `Arrays` make two methods, `min` and `max` that returns the smallest and largest elements in the ArrayList.\n    5. In `Arrays` make a `minMax` function that returns a `Pair` with the minimum and maximum values of the ArrayList.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzipcodecore%2Fmaven.genericdatastructures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzipcodecore%2Fmaven.genericdatastructures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzipcodecore%2Fmaven.genericdatastructures/lists"}