@Override public String toString() { return String.format("%s{%s}", getClass().getSimpleName(), super.toString()); } }
public String toString() {return count.toString();} }
public String toString() { return count.toString(); } }
@Override public String toString() { return val.toString(); } }
public String toString() { return count.toString(); } }
@Override public String toString() { return value.toString(); } }
@Override public String toString() { return group + "." + name + "#" + totalOccur.toString(); }
public String toString() { return m_count.toString(); } }
@Override public String toString() { return counter.toString(); }
/** * This method is used to convert the provided value into an XML * usable format. This is used in the serialization process when * there is a need to convert a field value in to a string so * that that value can be written as a valid XML entity. * * @param value this is the value to be converted to a string * * @return this is the string representation of the given value */ public String write(AtomicLong value) { return value.toString(); } }
public String toString() { return atomicLong.toString(); }
/** * This method is used to convert the provided value into an XML * usable format. This is used in the serialization process when * there is a need to convert a field value in to a string so * that that value can be written as a valid XML entity. * * @param value this is the value to be converted to a string * * @return this is the string representation of the given value */ public String write(AtomicLong value) { return value.toString(); } }
/** * This method is used to convert the provided value into an XML * usable format. This is used in the serialization process when * there is a need to convert a field value in to a string so * that that value can be written as a valid XML entity. * * @param value this is the value to be converted to a string * * @return this is the string representation of the given value */ public String write(AtomicLong value) { return value.toString(); } }
/** * Statement ID factory. * @return a statement ID unique for this JVM's life. */ public static String newSid() { SID_COUNTER.incrementAndGet(); return SID_COUNTER.toString(); }
public void writePrimitiveForm(Object o, Writer output) throws IOException { AtomicLong value = (AtomicLong) o; output.write(value.toString()); } }
@Override protected String getFormattedValue(boolean useCommas) { if (useCommas) { return FormatUtil.decimalScale0().format(val.get()); } else { return val.toString(); } }
public void write(Object obj, boolean showType, Writer output) throws IOException { if (showType) { AtomicLong value = (AtomicLong) obj; output.write("\"value\":"); output.write(value.toString()); } else { writePrimitiveForm(obj, output); } }
private void saveDiskUsage() { File usageFile = new File(cache.getCacheRoot(), CACHE_USAGE_FILENAME); FileContentWriter writer = new FileContentWriter(usageFile); writer.putContent(currentUsageBytes.toString()); }
private void saveDiskUsage() { File usageFile = new File(cache.getCacheRoot(), CACHE_USAGE_FILENAME); FileContentWriter writer = new FileContentWriter(usageFile); writer.putContent(currentUsageBytes.toString()); }
@Override public void sync() throws IOException { log.debug("[sync] start"); for (ConcurrentTreeNode node : cache.values()) { if (!node.isDeleted() && node.isChanged()) { source.put(node.getDbkey(), node); } } log.debug("[sync] end nextdb={}", nextDBID); Files.write(nextDBID.toString(), idFile, StandardCharsets.UTF_8); }