Class BinaryTool


  • public final class BinaryTool
    extends java.lang.Object
    A 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.String to​(java.lang.String[] name)
      Gets the binary name for a split hierarchy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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