Show / Hide Table of Contents

Class NiceString

Helper class for better string formatting without unnecesarry dependencies.

Inheritance
java.lang.Object
NiceString
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Namespace:
Assembly: .dll
Syntax
public final class NiceString

Constructors

NiceString()

Declaration
public NiceString()

Methods

make(String str, Object[] params)

Formats strings like in python. Placeholders look like this "Animal: {i}" where i is the index for which param to add. A maximum of 9 placeholders is supported. Example: StringFormat.niceString("Animal: {0}", 123) => "Animal: 123"

Declaration
public static String make(String str, Object[] params)
Parameters
Type Name Description
java.lang.String str

The string to process

java.lang.Object[] params

The params to replace the placeholders

Returns
Type Description
java.lang.String

The formatted string

In This Article
Back to top Generated by DocFX