(List<String> list)
| 961 | } |
| 962 | |
| 963 | public static List<String> getRepeat(List<String> list) { |
| 964 | List<String> rtn = new ArrayList<String>(); |
| 965 | Set<String> idSet = new HashSet<String>(); |
| 966 | |
| 967 | for (String id : list) { |
| 968 | if (idSet.contains(id)) { |
| 969 | rtn.add(id); |
| 970 | } else { |
| 971 | idSet.add(id); |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | return rtn; |
| 976 | } |
| 977 | |
| 978 | public static GlobalStreamId getGlobalStreamId(String componentId, String streamId) { |
| 979 | if (streamId == null) { |
no test coverage detected