Skip to content

Commit

Permalink
switched to LinkedHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
rsfzi committed Nov 17, 2024
1 parent 48decda commit d7c519c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ public static <I extends Value<?>> Trajectory<I> create(int timeSlices, List<Lis
throw new IllegalArgumentException("The number of time slices must match the input sequence size.");
}

Map<Integer, List<InputValue<I>>> samplePath = Maps.newHashMap();
Map<Integer, List<InputValue<I>>> samplePath = Maps.newLinkedHashMap();
for (int i = 0; i < timeSlices; i++) {
samplePath.put(i, samples.get(i));
}
return new Trajectory<>(timeSlices, samplePath);
}

public static <I extends Value<?>> Trajectory<I> create(int timeSlices) {
Map<Integer, List<InputValue<I>>> samplePath = Maps.newHashMap();
Map<Integer, List<InputValue<I>>> samplePath = Maps.newLinkedHashMap();
for (int i = 0; i <= timeSlices; i++) {
samplePath.put(i, Lists.newArrayList());
}
Expand Down

0 comments on commit d7c519c

Please sign in to comment.