本文整理了Java中java.util.HashSet.toString()
方法的一些代码示例,展示了HashSet.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HashSet.toString()
方法的具体详情如下:
包路径:java.util.HashSet
类名称:HashSet
方法名:toString
暂无
代码示例来源:origin: org.mockito/mockito-core
@Override public String toString() {
return backingHashSet.toString();
}
代码示例来源:origin: google/j2objc
@Override public String toString() {
return backingHashSet.toString();
}
代码示例来源:origin: Sable/soot
/**
* {@inheritDoc}
*/
public String toString() {
if (subsets == null) {
return "[]";
} else {
return subsets.toString();
}
}
代码示例来源:origin: apache/zookeeper
public String ackSetsToString(){
StringBuilder sb = new StringBuilder();
for (QuorumVerifierAcksetPair qvAckset : qvAcksetPairs) {
sb.append(qvAckset.getAckset().toString()).append(",");
}
return sb.substring(0, sb.length()-1);
}
代码示例来源:origin: apache/incubator-gobblin
@Override
Object convertField(JsonElement value) {
if (symbols.contains(value.getAsString()) || this.jsonSchema.isNullable()) {
return this.elementConverter.convert(value);
}
throw new RuntimeException("Symbol " + value.getAsString() + " does not belong to set " + symbols.toString());
}
代码示例来源:origin: robolectric/robolectric
"Provided %d parameters, but only found fields for parameters: %s",
parameters.length,
parameterFieldsFound.toString()));
代码示例来源:origin: wildfly/wildfly
EjbLogger.EJB3_TIMER_LOGGER.jdbcDatabaseDialectDetectionFailed(databaseDialects.toString());
} else {
EjbLogger.EJB3_TIMER_LOGGER.debugf("Detect database dialect as '%s'. If this is incorrect, please specify the correct dialect using the 'database' attribute in your configuration. Supported database dialect strings are %s", database, databaseDialects);
代码示例来源:origin: apache/geode
assertEquals(test, set);
assertEquals(set, test);
assertEquals(test.toString(), set.toString());
assertEquals(Arrays.asList(test.toArray()), Arrays.asList(set.toArray()));
assertEquals(Arrays.asList(test.toArray(new String[0])),
代码示例来源:origin: apache/tika
public static void main(String[] args) {
if (args.length < 1) {
System.err.println("Usage: " + StandardsExtractionExample.class.getName() + " /path/to/input");
System.exit(1);
}
String pathname = args[0];
Path folder = Paths.get(pathname);
System.out.println("Searching " + folder.toAbsolutePath() + "...");
processFolder(folder);
System.out.println(standardReferences.toString());
System.out.println("Parsed " + successfulFiles + "/" + (successfulFiles + failedFiles));
}
代码示例来源:origin: apache/tika
public static void main(String[] args) {
if (args.length != 1) {
System.err.println("Usage `java GrabPhoneNumbers [corpus]");
return;
}
Path folder = Paths.get(args[0]);
System.out.println("Searching " + folder.toAbsolutePath() + "...");
processFolder(folder);
System.out.println(phoneNumbers.toString());
System.out.println("Parsed " + successfulFiles + "/" + (successfulFiles + failedFiles));
}
代码示例来源:origin: org.robolectric/robolectric
"Provided %d parameters, but only found fields for parameters: %s",
parameters.length,
parameterFieldsFound.toString()));
代码示例来源:origin: org.apache.hadoop/hadoop-hdfs
.DFS_NAMENODE_SHARED_EDITS_DIR_KEY + " not set properly, " +
"it has been configured with different journalnode values " +
sharedEditsUri.toString() + " for a" +
" single nameserviceId" + nameServiceId);
代码示例来源:origin: jsurfer/JsonSurfer
@Override
public String toString() {
return children.toString();
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
@Override
public String toString() {
final String toString;
if (this.fetched) {
toString = super.toString();
} else {
toString = this.unfetchedToString;
}
return toString;
}
代码示例来源:origin: net.sf.jmpi/jmpi-main
@Override
public String toString() {
String s = super.toString();
return "<" + s.substring(1, s.length() - 1) + ">";
}
代码示例来源:origin: org.apache.portals.pluto/pluto-container
public Set<String> getNames() {
HashSet<String> names = new HashSet<String>();
for (String name : params.keySet()) {
names.add(name);
}
if (isTrace) {
LOGGER.debug("Parameter Names: " + names.toString());
}
return names;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Initialize the IP address whitelist
*/
protected void initWhitelist()
{
_whitelist.clear();
StringTokenizer tokenizer = new StringTokenizer(_whitelistStr, ",");
while (tokenizer.hasMoreTokens())
_whitelist.add(tokenizer.nextToken().trim());
LOG.info("Whitelisted IP addresses: {}", _whitelist.toString());
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Initialize the IP address whitelist
*/
protected void initWhitelist()
{
_whitelist.clear();
StringTokenizer tokenizer = new StringTokenizer(_whitelistStr, ",");
while (tokenizer.hasMoreTokens())
_whitelist.add(tokenizer.nextToken().trim());
LOG.info("Whitelisted IP addresses: {}", _whitelist.toString());
}
代码示例来源:origin: org.apache.gobblin/gobblin-parquet
@Override
Object convertField(JsonElement value) {
if (symbols.contains(value.getAsString()) || this.jsonSchema.isNullable()) {
return this.elementConverter.convert(value);
}
throw new RuntimeException("Symbol " + value.getAsString() + " does not belong to set " + symbols.toString());
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
@Override
public String toString() {
if (!_directAccess && isDelayLoad()) {
load();
}
return super.toString();
}
内容来源于网络,如有侵权,请联系作者删除!