static Set intersectSets()

in service/src/main/java/org/apache/fineract/cn/identity/internal/command/handler/AuthenticationCommandHandler.java [486:495]


  static <T> Set<T> intersectSets(
          final @Nullable Set<T> allowedOperations1,
          final @Nullable Set<T> allowedOperations2) {
    if (allowedOperations1 == null || allowedOperations2 == null)
      return Collections.emptySet();

    final Set<T> ret = new HashSet<>(allowedOperations1);
    ret.retainAll(allowedOperations2);
    return ret;
  }