I have this method
private fun checkRoomIdAndFindCinemaAndCheckIfRoomExists(paramRoomId: String?, paramCinemaId: String?, roomExists: Boolean?) : Array<Any> {
val roomId = ValidationHandler.validateId(paramRoomId, "room id")
val cinema = cinemaService.getCinemaById(paramCinemaId)
val roomExists = roomRepository.existsByIdAndCinemaId(roomId, paramCinemaId!!.toLong())
return arrayOf(roomId, cinema, roomExists)
}
What i want to do here is add roomId as Long , cinema as object and roomExists as boolean into an array, and return type should be the array. How can i do that?
Later i want to access these from another method.
Tripleor data class.Array<Any>to hold these three typed items so I can pass them around as a group?" Because, please, for all that is good in the world, do not useArray<Any>...