org.eclipse.osgi.service.resolver.State.compare()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中org.eclipse.osgi.service.resolver.State.compare()方法的一些代码示例,展示了State.compare()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State.compare()方法的具体详情如下:
包路径:org.eclipse.osgi.service.resolver.State
类名称:State
方法名:compare

State.compare介绍

[英]Returns a delta describing the differences between this state and the given state. The given state is taken as the base so the absence of a bundle in this state is reported as a deletion, etc.

Note that the generated StateDelta will contain BundleDeltas with one of the following types: BundleDelta.ADDED, BundleDelta.REMOVED and BundleDelta.UPDATED
[中]返回描述此状态与给定状态之间差异的增量。给定的状态被视为基础,因此在这种状态下缺少bundle将被报告为删除,等等。
请注意,生成的StateDelta将包含以下类型之一的BundleDelta:BundleDelta。补充:BundleDelta。拆下并捆绑在一起。更新

代码示例

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

public StateDelta compare(State state) throws BundleException {
  return target.compare(state);
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

public StateDelta compare(State state) throws BundleException {
  return target.compare(state);
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

public StateDelta compare(State state) throws BundleException {
  return platformAdmin.getSystemState().compare(state);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

public StateDelta compare(State state) throws BundleException {
  return platformAdmin.getSystemState().compare(state);
}

相关文章