Timeline for A Union Data Type
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 11, 2022 at 16:46 | comment | added | Ralf Kleberhoff |
@JaeBradley Instead of using something as generic as a Union2<UUID, Integer> for your situation, you'd specify what operations an identity has to support (e.g a resolveToEntity() method), and have the implementing classes provide their way to find the Entity. That's polymorphism, and IMHO perfectly solves your identities situation.
|
|
| Mar 11, 2022 at 15:24 | comment | added | Jae Bradley |
Not terribly familiar with this Identity interface pattern - how would this interface be incorporated with this Union concept?
|
|
| Mar 11, 2022 at 11:50 | history | answered | Ralf Kleberhoff | CC BY-SA 4.0 |