本文整理了Java中org.jvnet.hk2.component.MultiMap.keySet()
方法的一些代码示例,展示了MultiMap.keySet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.keySet()
方法的具体详情如下:
包路径:org.jvnet.hk2.component.MultiMap
类名称:MultiMap
方法名:keySet
[英]Returns the set of keys associated with this MultiMap
[中]返回与此多重映射关联的键集
代码示例来源:origin: javaee/glassfish
static String innerSort(String line) {
MultiMap<String, String> mm = split(line);
StringBuilder sb = new StringBuilder();
// class
List<String> vals = mm.remove("class");
assert(null != vals && 1 == vals.size());
sb.append("class=").append(vals.iterator().next());
// indicies
vals = mm.remove("index");
if (null != vals && vals.size() > 0) {
Collections.sort(vals);
for (String index : vals) {
sb.append(",index=").append(index);
}
}
// metadata
vals = new ArrayList<String>(mm.keySet());
Collections.sort(vals);
for (String key : vals) {
List<String> subVals = new ArrayList<String>(mm.get(key));
Collections.sort(subVals);
for (String val : subVals) {
sb.append(",").append(key).append("=").append(val);
}
}
return sb.toString();
}
代码示例来源:origin: eclipse-ee4j/glassfish
static String innerSort(String line) {
MultiMap<String, String> mm = split(line);
StringBuilder sb = new StringBuilder();
// class
List<String> vals = mm.remove("class");
assert(null != vals && 1 == vals.size());
sb.append("class=").append(vals.iterator().next());
// indicies
vals = mm.remove("index");
if (null != vals && vals.size() > 0) {
Collections.sort(vals);
for (String index : vals) {
sb.append(",index=").append(index);
}
}
// metadata
vals = new ArrayList<String>(mm.keySet());
Collections.sort(vals);
for (String key : vals) {
List<String> subVals = new ArrayList<String>(mm.get(key));
Collections.sort(subVals);
for (String val : subVals) {
sb.append(",").append(key).append("=").append(val);
}
}
return sb.toString();
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
descriptor.addMetadata(key, value);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
descriptor.addMetadata(key, value);
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
descriptor.addMetadata(key, value);
代码示例来源:origin: javaee/hk2
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
descriptor.addMetadata(key, value);
代码示例来源:origin: org.glassfish.main.admin/admin-cli
private void initializeRemoteAdminCommand() throws CommandException {
if (rac == null) {
rac = new RemoteCLICommand.CLIRemoteAdminCommand(name,
programOpts.getHost(), programOpts.getPort(),
programOpts.isSecure(), programOpts.getUser(),
programOpts.getPassword(), logger, programOpts.getAuthToken(),programOpts.isNotifyCommand());
rac.setFileOutputDirectory(outputDir);
rac.setInteractive(programOpts.isInteractive());
for (String key : listeners.keySet()) {
for (AdminCommandListener<GfSseInboundEvent> listener : listeners.get(key)) {
rac.registerListener(key, listener);
}
}
}
}
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: javaee/hk2
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
builder.has(key, value);
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
builder.has(key, value);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
builder.has(key, value);
代码示例来源:origin: javaee/hk2
for (String key : metadata.keySet()) {
for (String value : metadata.get(key)) {
builder.has(key, value);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
代码示例来源:origin: javaee/hk2
Set<String> keys = metadata.keySet();
for (String key : keys) {
List<String> values = metadata.get(key);
内容来源于网络,如有侵权,请联系作者删除!