larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/internal/Util.java
public static String[] intersect(
      Comparator<? super String> comparator, String[] first, String[] second) {
    List<String> result = new ArrayList<>();
    for (String a : first) {
      for (String b : second) {
        if (comparator.compare(a, b) == 0) {
          result.add(a);
          break;
        }
      }
    }
    return result.toArray(new String[result.size()]);
  }
/**
   * Returns an array containing only elements found in {@code first} and also in {@code
   * second}. The returned elements are in the same order as in {@code first}.
   */
Returns an array containing only elements found in  first and also in {@code
second}. The returned elements are in the same order as in  first.
Returns an array containing only elements found in first and also in { @code second } . The returned elements are in the same order as in first .
public static String[] intersect(
      Comparator<? super String> comparator, String[] first, String[] second) {
    List<String> result = new ArrayList<>();
    for (String a : first) {
      for (String b : second) {
        if (comparator.compare(a, b) == 0) {
          result.add(a);
          break;
        }
      }
    }
    return result.toArray(new String[result.size()]);
  }
public static String [ ] intersect ( Comparator < ? super String > comparator , String [ ] first , String [ ] second ) { List < String > result = new ArrayList < > ( ) ; for ( String a : first ) { for ( String b : second ) { if ( comparator . compare ( a , b ) == 0 ) { result . add ( a ) ; break ; } } } return result . toArray ( new String [ result . size ( ) ] ) ; }
Returns an array containing only elements found in {@code first} and also in {@code
 second}.
Returns an array containing only elements found in { @code first } and also in { @code second } .