Class NumberedName


  • public final class NumberedName
    extends Object
    Name representation with optional numeric suffix.

    This class handles names that may have numeric suffixes for disambiguation. For example: `foo`, `foo-2`, `foo-3`. Names without suffixes are treated as having number 1.

    Since:
    0.9.0
    • Constructor Detail

      • NumberedName

        public NumberedName​(String encoded)
        Constructor from encoded name.
        Parameters:
        encoded - The encoded name (e.g., "foo-2")
      • NumberedName

        public NumberedName​(int number,
                            String name)
        Constructor.
        Parameters:
        number - The number of the name starting from 1
        name - The base name of the object
    • Method Detail

      • plain

        public String plain()
        Name without the number.
        Returns:
        Name without the number.