Java Stream From Array Python Example Of A Class