問題タブ [generic-lambda]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - IntStream、Java 8 から LinkedHashMap を返す
私はこのコードを持っています。
time
値ごとList<TimePitchValue>
に が名前listTimePitchValue
で生成さlistTimePitchValue
れ、指定された を で指定されたものに関連付けbaseTime + time
ますmapListTimePitchValue
。
サポートのための
ChunkDTO
クラス
TimePitchValue
クラス
質問は、ソートされたものを直接返すことは可能Map<Long, List<TimePitchValue>>
ですIntStream
か?
(事前に作成Map<Long, List<TimePitchValue>> mapListTimePitchValue = new LinkedHashMap<>();
して後で配置せずにmapListTimePitchValue.put(baseTime + time, listTimePitchValue);
)