java.util.LinkedHashMap.toString()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(291)

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

LinkedHashMap.toString介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-framework

@Override
public String toString() {
  return this.targetMap.toString();
}

代码示例来源:origin: org.springframework/spring-core

@Override
public String toString() {
  return this.targetMap.toString();
}

代码示例来源:origin: jenkinsci/jenkins

@Override public String toString() {
  return new LinkedHashMap<Integer,R>(this).toString();
}

代码示例来源:origin: org.apache.ant/ant

@Override
public synchronized String toString() {
  return map.toString();
}

代码示例来源:origin: loklak/loklak_server

public String toString() {
    return this.selectionMapping == null ? "NULL" : this.selectionMapping.toString();
  }
}

代码示例来源:origin: jdbi/jdbi

@Override
  public String toString() {
    return new LinkedHashMap<>(args).toString();
  }
}

代码示例来源:origin: elastic/elasticsearch-hadoop

@SuppressWarnings({ "rawtypes", "unchecked" })
  @Override
  public String toString(Object field) {
    if (field instanceof Map) {
      return new LinkedHashMap((Map) field).toString();
    }
    return field.toString();
  }
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class Callback {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class Scopes {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class ServerVariables {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class SecurityRequirement {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class Paths {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class Content {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: swagger-api/swagger-core

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("class ApiResponses {\n");
  sb.append("    ").append(toIndentedString(super.toString())).append("\n");
  sb.append("    extensions: ").append(toIndentedString(extensions)).append("\n");
  sb.append("}");
  return sb.toString();
}

代码示例来源:origin: apache/geode

public CommandResultAssert containsOrderedOutput(String dataSectionName,
  String... expectedOutputs) {
 LinkedHashMap<String, String> outputMap =
   ((LinkedHashMap) actual.getCommandResult().getMapFromSection(dataSectionName));
 String outputString = outputMap.toString();
 int outputIndex = 0;
 for (int i = 0; i < expectedOutputs.length; i++) {
  outputIndex = outputString.indexOf(expectedOutputs[i]);
  if (outputIndex == -1) {
   Assert.fail("Expected output " + expectedOutputs[i]
     + " was not found, or isn't in the specified order.");
  }
  outputString = outputString.substring(outputIndex);
 }
 return this;
}

代码示例来源:origin: apache/drill

/**
 * Check the index partitions on a partitioned table exist and are fresh
 */
private static boolean isIndexPartitionFresh(Hive hive, Index index,
  Partition part) throws HiveException {
 LOG.info("checking index staleness...");
 try {
  String indexTs = index.getParameters().get(part.getSpec().toString());
  if (indexTs == null) {
   return false;
  }
  FileSystem partFs = part.getDataLocation().getFileSystem(hive.getConf());
  FileStatus[] parts = partFs.listStatus(part.getDataLocation(), FileUtils.HIDDEN_FILES_PATH_FILTER);
  for (FileStatus status : parts) {
   if (status.getModificationTime() > Long.parseLong(indexTs)) {
    LOG.info("Index is stale on partition '" + part.getName()
      + "'. Modified time (" + status.getModificationTime() + ") for '" + status.getPath()
      + "' is higher than index creation time (" + indexTs + ").");
    return false;
   }
  }
 } catch (IOException e) {
  throw new HiveException("Failed to grab timestamp information from partition '" + part.getName() + "': " + e.getMessage(), e);
 }
 return true;
}

代码示例来源:origin: yanzhenjie/AndServer

@Override
public String toString() {
  return this.mSource.toString();
}

代码示例来源:origin: geotools/geotools

/** Returns a string representation of this map. */
@Override
public String toString() {
  synchronized (getLock()) {
    return super.toString();
  }
}

代码示例来源:origin: apache/hive

:  partish.getPartition().getSpec().toString();
LOG.warn("Partition/partfiles is null for: " + spec);
if (isMissingAcidState) {

代码示例来源:origin: prometheus/jmx_exporter

Object beanValue) {
String beanName = domain + angleBrackets(beanProperties.toString()) + angleBrackets(attrKeys.toString());

相关文章