https://github.com/zipcodecore/maven.generics-pairdatastructure
The Microlab on implementing a multiple-typed generic Pair class.
https://github.com/zipcodecore/maven.generics-pairdatastructure
Last synced: 3 months ago
JSON representation
The Microlab on implementing a multiple-typed generic Pair class.
- Host: GitHub
- URL: https://github.com/zipcodecore/maven.generics-pairdatastructure
- Owner: ZipCodeCore
- Created: 2017-05-15T18:16:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T14:36:31.000Z (over 8 years ago)
- Last Synced: 2025-01-08T12:41:26.341Z (12 months ago)
- Language: Java
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pair MicroLab
In Chapter 8.2, the book shows how to make your own generic class. The example that they use is Pair with a singular type.
That's been written out for you, but the tests were written to pass with Pair having two generic types.
So, what you need to do is modify the Pair class to take two Type parameters so that the tests pass.