Does Java SE 8 have Pairs or Tuples?

前端 未结 9 879
独厮守ぢ
独厮守ぢ 2020-11-28 18:37

I am playing around with lazy functional operations in Java SE 8, and I want to map an index i to a pair / tuple (i, value[i]), then <

9条回答
  •  悲&欢浪女
    2020-11-28 19:15

    You can have a look on these built-in classes :

    • AbstractMap.SimpleEntry
    • AbstractMap.SimpleImmutableEntry

提交回复
热议问题