Package net.orbyfied.j8.util.logging
Class LogText
java.lang.Object
net.orbyfied.j8.util.logging.LogText
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogText.Stringable<T> T<T> TgetOrCreate(String key, Function<String, T> function) Lock the new line value.booleannewLine()Get if a newline is enabled.newLine(boolean b) Set if a newline is enabled.Put a new component at the end.Put a new component at the specified index.Put a new component at the end.Create a new log text object, add it as a component under the specified key and return it.Create a new log text object, add it as a component under the specified key and at the specified index and return it.toString()toString(boolean format) <T> LogText<T> LogTextuseOrCreate(String key, Function<String, T> constructor, Consumer<T> consumer)
-
Constructor Details
-
LogText
public LogText()
-
-
Method Details
-
formatted
-
getMapped
-
getLinear
-
lockNewline
Lock the new line value.- Returns:
- This.
-
newLine
Set if a newline is enabled.- Parameters:
b- Boolean.- Returns:
- This.
-
newLine
public boolean newLine()Get if a newline is enabled.- Returns:
- True/false.
-
put
Put a new component at the end.- Parameters:
val- The value.- Returns:
- This.
-
put
Put a new component at the end.- Parameters:
key- The key.val- The value.- Returns:
- This.
-
put
Put a new component at the specified index.- Parameters:
key- The key.idx- The index.val- The value.- Returns:
- This.
-
sub
Create a new log text object, add it as a component under the specified key and return it.- Parameters:
key- The key to put it under.- Returns:
- The text object.
-
sub
Create a new log text object, add it as a component under the specified key and at the specified index and return it.- Parameters:
key- The key to put it under.idx- The index.- Returns:
- The text object.
-
get
-
use
-
getOrCreate
-
useOrCreate
-
toString
-
toString
-