| | |
| | | import java.lang.reflect.*; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.security.MessageDigest; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * Created by vincent on 2019-06-09 |
| | |
| | | return false; |
| | | } |
| | | |
| | | public static List<String> getIntersection(List<String> list1, List<String> list2) { |
| | | if (isEmpty(list1) || isEmpty(list2)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | List<String> intersection = new ArrayList<>(list1); |
| | | intersection.retainAll(list2); |
| | | return intersection; |
| | | } |
| | | |
| | | } |