@Override public String getDescForKnownTypeIds() { return new TreeSet<String>(_idToType.keySet()).toString(); }
@Override public String getDescForKnownTypeIds() { return new TreeSet<String>(_idToType.keySet()).toString(); }
@Override public String toString() { return new TreeSet<>(resourceTables.keySet()).toString(); } }
/** * 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) + " }"; }
@Override public String getDescForKnownTypeIds() { return new TreeSet<String>(_idToType.keySet()).toString(); }
/** * 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); } }
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); } }
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);
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);
@Override public String toString() { return "DefaultBillingEventSet [accountAutoInvoiceOff=" + accountAutoInvoiceOff + ", subscriptionIdsWithAutoInvoiceOff=" + subscriptionIdsWithAutoInvoiceOff + ", Events=" + super.toString() + "]"; } }
@Override public synchronized String toString() { return cookies.toString(); }
@Override public synchronized String toString() { return cookies.toString(); } }
@Override public synchronized String toString() { return cookies.toString(); }
@Override public synchronized String toString() { return cookies.toString(); }
@Override public String toString() { return new TreeSet<>(resourceTables.keySet()).toString(); } }
@Override public String toString () { StringBuffer buf = new StringBuffer(); buf.append("PARTITIONED SE RANKER:\n\n"); buf.append(ranking.toString()); return buf.toString(); }
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(); }
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(); }
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()); }
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()); }