Package me.hsgamer.hscore.variable
Interface VariableSession
public interface VariableSession
A session for replacing variables
-
Method Summary
Modifier and TypeMethodDescriptionGet the final stringGet the variablebooleanCheck if the string has a variablevoidreplaceVariable(String replacement) Replace the variable with the replacement
-
Method Details
-
hasVariable
boolean hasVariable()Check if the string has a variable- Returns:
- true if it does
-
getVariable
String getVariable()Get the variable- Returns:
- the variable
-
replaceVariable
Replace the variable with the replacement- Parameters:
replacement- the replacement
-
getFinalString
String getFinalString()Get the final string- Returns:
- the final string
-