Class CompositeName


  • public final class CompositeName
    extends Object
    An immutable composite name representation for use in "pattern matching style". Supports lightweight splitting into first element and "tail" (everything else).
    • Method Detail

      • create

        public static CompositeName create​(boolean isAbsolute,
                                           String[] components,
                                           int prefixLength)
      • isEmpty

        public boolean isEmpty()
      • getHead

        public String getHead()
      • matchPrefix

        public CompositeName matchPrefix​(String[] prefix)
        Tries to match the prefix argument with the first elements of this name
        Returns:
        the remaining elements on success or null on failure