I know about that but android.util.Pair has final fields which don't fit into what I need.