Working with Jena again…is there no way to turn an XSDDateTime (or another other XSD date/time instance) into a Java Instant?
…and that’s how Enterprise FizzBuzz is born
I feel like I’m being nerd sniped into an implementation that uses a FizzBuzzFactoryFactory to dispatch to either a FizzFactory, a BuzzFactory, or a FizzBuzzFactory, which then instantiates a FizzInterface, a BuzzInterface, or an extension of both that implements both interfaces, and then calls the parent AbstractFizz or AbstractBuzz…
At least not directly…you can do it this roundabout way:
(.toInstant (.asCalendar date-time))But it seems like an oversight regardless
It’s the Java way 🙂
Shouldn't there be some kind of factory class here?
Eh you can assume that I defined date-time elsewhere
Sorry, should've marked that as a joke. 🙂
> Shouldn’t there be some kind of factory class here? You get that from the FactoryFactory class
You could also just reify AbstractFactoryAbstractFactory.