本文整理了Java中java.util.TreeSet.toString()
方法的一些代码示例,展示了TreeSet.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TreeSet.toString()
方法的具体详情如下:
包路径:java.util.TreeSet
类名称:TreeSet
方法名:toString
暂无
代码示例来源:origin: prestodb/presto
@Override
public String getDescForKnownTypeIds() {
return new TreeSet<String>(_idToType.keySet()).toString();
}
代码示例来源:origin: redisson/redisson
@Override
public String getDescForKnownTypeIds() {
return new TreeSet<String>(_idToType.keySet()).toString();
}
代码示例来源:origin: robolectric/robolectric
@Override
public String toString() {
return new TreeSet<>(resourceTables.keySet()).toString();
}
}
代码示例来源:origin: kevin-wayne/algs4
/**
* Returns a string representation of this set.
*
* @return a string representation of this set, enclosed in curly braces,
* with adjacent keys separated by a comma and a space
*/
@Override
public String toString() {
String s = set.toString();
return "{ " + s.substring(1, s.length() - 1) + " }";
}
代码示例来源:origin: apache/drill
@Override
public String getDescForKnownTypeIds() {
return new TreeSet<String>(_idToType.keySet()).toString();
}
代码示例来源:origin: apache/ignite
/**
* Handles commit or rollback transaction. Finished statistics accumulation.
*
* @param nearXidVer near Xid Version. Global transaction identifier within cluster, assigned by transaction
* coordinator.
* @param commit tx committed, flag indicating TX successes.
*/
void onTxEnd(GridCacheVersion nearXidVer, boolean commit) {
TxOccurrence occurrence = opened.remove(nearXidVer);
if (occurrence == null)
return;
if (!commit)
return;
if (occurrence.nodes > 0 && occurrence.totalNodes > 0) {
avgPrimaryNodes.occurrence(occurrence.nodes);
avgTotalNodes.occurrence(occurrence.totalNodes);
}
incrementStat(occurrence.entriesUpdated, txEntriesUpdated);
incrementStat(occurrence.caches.size(), txCachesInvolved);
if (!occurrence.caches.isEmpty()) {
final String sortedCachesKey = occurrence.caches.toString();
incrementStat(sortedCachesKey, cacheIdsInTx.map, 1);
if (occurrence.nodes > 0)
incrementStat(sortedCachesKey, cacheIdsWeightedNodesInTx.map, occurrence.nodes);
if (occurrence.totalNodes > 0)
incrementStat(sortedCachesKey, cacheIdsWeightedTotalNodesInTx.map, occurrence.totalNodes);
}
}
代码示例来源:origin: mulesoft/mule
private ExtensionModel getExtensionModelFrom(String modulePath, String... offendingOperations) {
exception.expectMessage(format(XmlExtensionLoaderDelegate.CYCLIC_OPERATIONS_ERROR,
new TreeSet(new HashSet<>(Arrays.asList(offendingOperations))).toString()));
Map<String, Object> parameters = new HashMap<>();
parameters.put(RESOURCE_XML, modulePath);
parameters.put(VALIDATE_XML, validateXml);
// TODO MULE-14517: This workaround should be replaced for a better and more complete mechanism
parameters.put("COMPILATION_MODE", true);
return new XmlExtensionModelLoader().loadExtensionModel(getClass().getClassLoader(), getDefault(emptySet()), parameters);
}
}
代码示例来源:origin: jamesagnew/hapi-fhir
if (!myAllow.contains(value)) {
if (!myAllow.contains("*")) {
String msg = theContext.getLocalizer().getMessage(IncludeParameter.class, "invalidIncludeNameInRequest", value, new TreeSet<String>(myAllow).toString(), getName());
throw new InvalidRequestException(msg);
代码示例来源:origin: jamesagnew/hapi-fhir
if (!myAllow.contains(value)) {
if (!myAllow.contains("*")) {
String msg = theContext.getLocalizer().getMessage(IncludeParameter.class, "invalidIncludeNameInRequest", value, new TreeSet<String>(myAllow).toString(), getName());
throw new InvalidRequestException(msg);
代码示例来源:origin: org.kill-bill.billing/killbill-junction
@Override
public String toString() {
return "DefaultBillingEventSet [accountAutoInvoiceOff=" + accountAutoInvoiceOff
+ ", subscriptionIdsWithAutoInvoiceOff=" + subscriptionIdsWithAutoInvoiceOff + ", Events="
+ super.toString() + "]";
}
}
代码示例来源:origin: ibinti/bugvm
@Override
public synchronized String toString() {
return cookies.toString();
}
代码示例来源:origin: com.virjar/dungproxy-client
@Override
public synchronized String toString() {
return cookies.toString();
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpclient
@Override
public synchronized String toString() {
return cookies.toString();
}
代码示例来源:origin: org.apache.hadoop/hadoop-aws-tlnd
@Override
public synchronized String toString() {
return cookies.toString();
}
代码示例来源:origin: org.robolectric/resources
@Override
public String toString() {
return new TreeSet<>(resourceTables.keySet()).toString();
}
}
代码示例来源:origin: org.bitbucket.ibencher/vagabond
@Override
public String toString () {
StringBuffer buf = new StringBuffer();
buf.append("PARTITIONED SE RANKER:\n\n");
buf.append(ranking.toString());
return buf.toString();
}
代码示例来源:origin: net.wetheinter/gwt-user
private <E extends Enum<E>> String getFlatName(final E[] enums) {
final TreeSet<String> ordered = new TreeSet<String>();
ordered.add(enums.getClass().getComponentType().getCanonicalName());
for (final E enumItem : enums) {
ordered.add(enumItem.name());
}
return ordered.toString();
}
代码示例来源:origin: net.wetheinter/gwt-user
private String getFlatName(final Annotation[] annos) {
final TreeSet<String> ordered = new TreeSet<String>();
ordered.add(annos.getClass().getComponentType().getCanonicalName());
for (final Annotation anno : annos) {
ordered.add(anno.toString());
}
return ordered.toString();
}
代码示例来源:origin: jenkinsci/cloudbees-folder-plugin
void assertItemNames(int round, String... names) {
assertEquals(round, this.round);
Set<String> actual = new TreeSet<String>();
for (FreeStyleProject p : getItems()) {
actual.add(p.getName());
}
assertEquals(new TreeSet<String>(Arrays.asList(names)).toString(), actual.toString());
}
代码示例来源:origin: jenkinsci/cloudbees-folder-plugin
void assertItemNames(int round, String... names) {
assertEquals(round, this.round);
Set<String> actual = new TreeSet<String>();
for (FreeStyleProject p : getItems()) {
actual.add(p.getName());
}
assertEquals(new TreeSet<String>(Arrays.asList(names)).toString(), actual.toString());
}
内容来源于网络,如有侵权,请联系作者删除!