| | |
| | | package com.zy.acs.manager.common.utils; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.zy.acs.manager.core.service.astart.WaveNodeType; |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.manager.core.service.astart.WaveNodeType; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Created by vincent on 8/7/2024 |
| | |
| | | } |
| | | list.removeIf(next -> next.equals(vehicle)); |
| | | return list; |
| | | } |
| | | |
| | | public static List<String> hasIntersection(List<String> l0, List<String> l1) { |
| | | if (Cools.isEmpty(l0, l1)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return l0.stream().filter(l1::contains).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public static String generateWaveNode(String originStr, String waveNode) { |