/** * Returns the path of the system's temporary directory. This method appends the system's file separator at the end of * the path. * * @return the path of the system's temporary directory. */ public static String temporaryFolderPath() { return append(separator).to(System.getProperty("java.io.tmpdir")); }
/** * Appends a given {@code String} to the given target, only if the target does not end with the given {@code String} * to append. The following example illustrates proper usage of this method: * * <pre><code class='java'> * Strings.append("c").to("ab"); * Strings.append("c").to("abc"); * </code></pre> * * resulting in the {@code String} <code>"abc"</code> for both cases. * * @param toAppend the {@code String} to append. * @return an intermediate object that takes the target {@code String} and knows to append the given {@code String}. * @see StringToAppend#to(String) */ public static StringToAppend append(String toAppend) { return new StringToAppend(toAppend); }
/** * Returns the path of the system's temporary directory. This method appends the system's file separator at the end of * the path. * * @return the path of the system's temporary directory. */ public static String temporaryFolderPath() { return append(separator).to(System.getProperty("java.io.tmpdir")); }
/** * Appends a given {@code String} to the given target, only if the target does not end with the given {@code String} * to append. The following example illustrates proper usage of this method: * <pre><code class='java'> Strings.append("c").to("ab"); * Strings.append("c").to("abc");</code></pre> * * resulting in the {@code String} <code>"abc"</code> for both cases. * * @param toAppend the {@code String} to append. * @return an intermediate object that takes the target {@code String} and knows to append the given {@code String}. * @see StringToAppend#to(String) */ public static StringToAppend append(String toAppend) { return new StringToAppend(toAppend); }
/** * Appends a given {@code String} to the given target, only if the target does not end with the given {@code String} * to append. The following example illustrates proper usage of this method: * <pre><code class='java'> Strings.append("c").to("ab"); * Strings.append("c").to("abc");</code></pre> * * resulting in the {@code String} <code>"abc"</code> for both cases. * * @param toAppend the {@code String} to append. * @return an intermediate object that takes the target {@code String} and knows to append the given {@code String}. * @see StringToAppend#to(String) */ public static StringToAppend append(String toAppend) { return new StringToAppend(toAppend); }
/** * Returns the path of the system's temporary directory. This method appends the system's file separator at the end of * the path. * * @return the path of the system's temporary directory. */ public static String temporaryFolderPath() { return append(separator).to(System.getProperty("java.io.tmpdir")); }