Package org.cadixdev.lorenz.util
Class BinaryTool
- java.lang.Object
-
- org.cadixdev.lorenz.util.BinaryTool
-
public final class BinaryTool extends java.lang.ObjectA utility for working with binary names in Lorenz.- Since:
- 0.5.7
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]from(java.lang.String binaryName)Gets the split hierarchy of a binary name.static java.lang.Stringto(java.lang.String[] name)Gets the binary name for a split hierarchy.
-
-
-
Method Detail
-
from
public static java.lang.String[] from(java.lang.String binaryName)
Gets the split hierarchy of a binary name.For example, calling
from("a$b$c"} would produce["a", "b", "c"].- Parameters:
binaryName- The binary name- Returns:
- The name hierarchy
-
to
public static java.lang.String to(java.lang.String[] name)
Gets the binary name for a split hierarchy.- Parameters:
name- The hierarchy- Returns:
- The binary name
-
-