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

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

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

LinkedList.toString介绍

暂无

代码示例

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

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

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

@Override
public String toString() {
  String result = "";
  for (int i = MAX_PRIORITY - 1; i >= 0; i--) {
    result += i + ":{" + lists[i].toString() + "}";
  }
  return result;
}

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

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

代码示例来源:origin: NLPchina/elasticsearch-sql

@Override
public String toString(){
  if(wheres.size()>0){
    String whereStr = wheres.toString() ;
    return this.conn + " ( "+whereStr.substring(1,whereStr.length()-1)+" ) " ;
  }else{
    return "" ;
  }
  
}

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

String displayStatus(RemoteThread rThread, Object name) {
 StringBuffer sb = new StringBuffer();
 synchronized (this.suspendLock) {
  sb.append(' ');
  sb.append(this.toString());
  sb.append(" id=" + this.hashCode());
  sb.append(" rThread=" + rThread);
  if (name != null) {
   sb.append(" name=" + name);
  }
  sb.append(" permittedRequests (" + permittedRequests.size() + ")="
    + permittedRequests.toString() + "");
  sb.append(" suspendedLockId = " + suspendedLockId);
  sb.append(" lockingSuspendedBy = " + lockingSuspendedBy);
  sb.append(" writeLockWaiters = " + writeLockWaiters);
  sb.append(" totalReadLockCount = " + totalReadLockCount);
  sb.append("\nsuspendQueue (" + suspendQueue.size() + ")=" + suspendQueue.toString());
  // Kirk said it was ok to not log the list of readLockers to cut
  // down on how much logging is done at fine level.
  sb.append("\nreadLockers (" + readLockCountMap.size()
    + ")" /* + "=" + readLockCountMap.toString() */);
 }
 return sb.toString();
}

代码示例来源:origin: FudanNLP/fnlp

public static void main(String args[]) throws Exception{
    String str2 = "复旦大学创建于1905年,它位于上海市,这个大学培育了好多优秀的学生。";
    String str3[] = {"复旦","大学","创建","于","1905年",",","它","位于","上海市",",","这个","大学","培育","了","好多","优秀","的","学生","。"};
    String str4[] = {"专有名","名词","动词","介词","时间短语","标点","代词","动词","专有名","标点","限定词","名词","动词","动态助词","数词","形容词","结构助词","名词","标点"};
    String str5[][][] = new String[1][2][str3.length];
    str5[0][0] = str3;
    str5[0][1] = str4;		
    RuleAnaphora arp = new RuleAnaphora();
    System.out.printf(arp.resolve(str5, str2).toString());
    
//        RuleAnaphora arp = new RuleAnaphora("./models/seg.m","./models/pos.m");
//        LinkedList<EntityGroup> ll = arp.resolve("复旦大学创建于1905年,他位于上海市,这个大学培育了好多优秀的学生。");
//        
  }
}

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

throw new NullPointerException(String.format("The %s must not be null.", nulls.toString()));
throw new IllegalArgumentException(String.format("The %s must not be empty.", empties.toString()));

代码示例来源:origin: json-path/JsonPath

private JsonPath pathFromCache(String path, Predicate[] filters) {
  Cache cache = CacheProvider.getCache();
  String cacheKey = Utils.concat(path, new LinkedList<Predicate>(asList(filters)).toString());
  JsonPath jsonPath = cache.get(cacheKey);
  if (jsonPath == null) {
    jsonPath = compile(path, filters);
    cache.put(cacheKey, jsonPath);
  }
  return jsonPath;
}

代码示例来源:origin: webx/citrus

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

代码示例来源:origin: webx/citrus

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

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

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

代码示例来源:origin: com.jayway.jsonpath/json-path

@Override
public <T> T read(String path, Predicate... filters) {
  notEmpty(path, "path can not be null or empty");
  Cache cache = CacheProvider.getCache();
  path = path.trim();
  LinkedList filterStack = new LinkedList<Predicate>(asList(filters));
  String cacheKey = Utils.concat(path, filterStack.toString());
  JsonPath jsonPath = cache.get(cacheKey);
  if(jsonPath != null){
    return read(jsonPath);
  } else {
  jsonPath = compile(path, filters);
  cache.put(cacheKey, jsonPath);
    return read(jsonPath);
  }
}

代码示例来源:origin: org.apache.activemq/activemq-all

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

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

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

代码示例来源:origin: org.apache.activemq/activemq-client

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

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

@Override
  public String toString() {
    return "com.example.myproject.module.message.WxMessage.Image.Builder(body=" + this.items.toString() + ")";
  }
}

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

public String toString()
  {
    return key + "/" + span + ": " + super.toString();
  }
}

代码示例来源:origin: com.alibaba.citrus/citrus-webx-all

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

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-xml-xpath-ext

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

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

/**
 * {@inheritDoc} Show parts in a list manner.
 */
public String getString() {
  return parts.toString();
}

相关文章