rdf

Kelvin 2023-01-27T15:06:37.613949Z

Working with Jena again…is there no way to turn an XSDDateTime (or another other XSD date/time instance) into a Java Instant?

Kelvin 2023-01-30T14:06:02.484039Z

…and that’s how Enterprise FizzBuzz is born

quoll 2023-01-30T14:55:28.973789Z

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…

😄 1
Kelvin 2023-01-27T15:38:53.064689Z

At least not directly…you can do it this roundabout way:

(.toInstant (.asCalendar date-time))

Kelvin 2023-01-27T15:38:58.398399Z

But it seems like an oversight regardless

quoll 2023-01-27T16:44:14.959379Z

It’s the Java way 🙂

2023-01-27T18:57:59.812539Z

Shouldn't there be some kind of factory class here?

Kelvin 2023-01-27T18:59:32.565849Z

Eh you can assume that I defined date-time elsewhere

2023-01-27T19:00:20.027209Z

Sorry, should've marked that as a joke. 🙂

😁 1
quoll 2023-01-27T19:11:40.160439Z

> Shouldn’t there be some kind of factory class here? You get that from the FactoryFactory class

curtosis 2023-01-29T19:46:22.541409Z

You could also just reify AbstractFactoryAbstractFactory.

👍 2