如何合并两个unmodifiable static final
集合?
public static final Set<Long> ORG_SUBSCRIBER_ALLOWED_NUMBER_CD = Set.of(COMPANY_GST, GOVERNMENT_BODY_GST);
public static final Set<Long> INDIVIDUAL_SUBSCRIBER_ALLOWED_NUMBER_CD = Set.of(BUSINESS_PAN, INDIVIDUAL_PAN);
我想将上面的静态最终集组合成一个集合(单语句初始化),因为它是一个Class
变量
public static final Set<Long> SUBSCRIBER_ALLOWED_NUMBER_CD = ?