問題タブ [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.

0 投票する
1 に答える
287 参照

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);