@Override public String toString() { synchronized (mutex) { return list.toString(); } } }
@Override public String toString() { String result = ""; for (int i = MAX_PRIORITY - 1; i >= 0; i--) { result += i + ":{" + lists[i].toString() + "}"; } return result; }
@Override public String toString() { return list.toString(); }
@Override public String toString(){ if(wheres.size()>0){ String whereStr = wheres.toString() ; return this.conn + " ( "+whereStr.substring(1,whereStr.length()-1)+" ) " ; }else{ return "" ; } }
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(); }
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年,他位于上海市,这个大学培育了好多优秀的学生。"); // } }
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; }
@Override public String toString() { return groups.toString(); } }
@Override public String toString() { return groups.toString(); } }
Object beanValue) { String beanName = domain + angleBrackets(beanProperties.toString()) + angleBrackets(attrKeys.toString());
@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); } }
@Override public String toString() { synchronized (mutex) { return list.toString(); } } }
@Override public String toString() { return vec.toString(); } }
@Override public String toString() { synchronized (mutex) { return list.toString(); } } }
@Override public String toString() { return "com.example.myproject.module.message.WxMessage.Image.Builder(body=" + this.items.toString() + ")"; } }
public String toString() { return key + "/" + span + ": " + super.toString(); } }
@Override public String toString() { return groups.toString(); } }
@Override public String toString() { return mSModelsList.toString(); } }
/** * {@inheritDoc} Show parts in a list manner. */ public String getString() { return parts.toString(); }