Class StringPlaceholders
java.lang.Object
dev.esophose.playerparticles.util.StringPlaceholders
public final class StringPlaceholders
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringPlaceholders.Builder
-
Constructor Summary
Constructors Constructor Description StringPlaceholders()
-
Method Summary
Modifier and Type Method Description void
addPlaceholder(java.lang.String placeholder, java.lang.Object value)
java.lang.String
apply(java.lang.String string)
static StringPlaceholders.Builder
builder()
static StringPlaceholders.Builder
builder(java.lang.String placeholder, java.lang.Object value)
static StringPlaceholders
empty()
java.util.Map<java.lang.String,java.lang.String>
getPlaceholders()
static StringPlaceholders
single(java.lang.String placeholder, java.lang.Object value)
-
Constructor Details
-
StringPlaceholders
public StringPlaceholders()
-
-
Method Details
-
addPlaceholder
public void addPlaceholder(java.lang.String placeholder, java.lang.Object value) -
apply
public java.lang.String apply(java.lang.String string) -
getPlaceholders
public java.util.Map<java.lang.String,java.lang.String> getPlaceholders() -
builder
-
builder
public static StringPlaceholders.Builder builder(java.lang.String placeholder, java.lang.Object value) -
empty
-
single
-