Initial quant trader service baseline
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.quantai.trader.domain;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
final class Maps {
|
||||
|
||||
private Maps() {
|
||||
}
|
||||
|
||||
static Map<String, Object> immutable(Map<String, Object> value) {
|
||||
if (value == null || value.isEmpty()) {
|
||||
return Map.of();
|
||||
}
|
||||
return Map.copyOf(new LinkedHashMap<>(value));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user