Java Function Object Is Not Subscriptable