src/main/java/net/matrix/app/repository/ResourceSelectionSet.java
public Set<ResourceSelection> checkDiff(final ResourceSelectionSet target) {
		// 更新信息列表
		Set<ResourceSelection> diffs = new HashSet<>();

		// 读取源版本
		Set<ResourceSelection> sourceEntrys = selections;
		if (LOG.isDebugEnabled()) {
			LOG.debug("源版本：{}", sourceEntrys);
		}

		// 读取目标版本
		Set<ResourceSelection> targetEntrys = target.selections;
		if (LOG.isDebugEnabled()) {
			LOG.debug("目标版本：{}", targetEntrys);
		}

		// 处理是否更新
		diffs.addAll(targetEntrys);
		diffs.removeAll(sourceEntrys);

		if (LOG.isDebugEnabled()) {
			LOG.debug("更新结果：{}", diffs);
		}
		return diffs;
	}
public Set<ResourceSelection> checkDiff(final ResourceSelectionSet target) {
		// 更新信息列表
		Set<ResourceSelection> diffs = new HashSet<>();

		// 读取源版本
		Set<ResourceSelection> sourceEntrys = selections;
		if (LOG.isDebugEnabled()) {
			LOG.debug("源版本：{}", sourceEntrys);
		}

		// 读取目标版本
		Set<ResourceSelection> targetEntrys = target.selections;
		if (LOG.isDebugEnabled()) {
			LOG.debug("目标版本：{}", targetEntrys);
		}

		// 处理是否更新
		diffs.addAll(targetEntrys);
		diffs.removeAll(sourceEntrys);

		if (LOG.isDebugEnabled()) {
			LOG.debug("更新结果：{}", diffs);
		}
		return diffs;
	}
public Set < ResourceSelection > checkDiff ( final ResourceSelectionSet target ) { // 更新信息列表 Set < ResourceSelection > diffs = new HashSet <> ( ) ; // 读取源版本 Set < ResourceSelection > sourceEntrys = selections ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "源版本：{}", source E trys); } // 读取目标版本 Set < ResourceSelection > targetEntrys = target . selections ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "目标版本：{}", targetEn t ys); } // 处理是否更新 diffs . addAll ( targetEntrys ) ; diffs . removeAll ( sourceEntrys ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "更新结果：{}", diffs); } return diffs ; }
检查本集合与另一集合包含资源仓库选择的差异。

@param target
另一集合
@return 差异集合
检查本集合与另一集合包含资源仓库选择的差异。