I have a method and I would like to return 3 types of data from it. I need a container class for that. I don't want to build it, but use a standard library class for it if this option exists.
I want to return from the method the following data at the same time:
LocalDateLocalTime- Message Object
My question - Is there a Class/Data Structure with Generics in the Java Standard libraries which I can use as container that I can assign the respective values to and that will allow me to return all these 3 values at the same time without me having to create it or use external libraries for?
If not, what other options to solve this issue do I have ?