Interface NamedContainerManagerWithUniqueNames<C extends AbstractContainer>

    • Method Detail

      • getUniqueName

        String getUniqueName​(HashSet<String> names,
                             String name)
        Creates a unique name from of the given one, if necessary, testing against the specified names.
        Parameters:
        names - the names to test uniqueness against
        name - the name to make unique
        Returns:
        the unique name
      • updateName

        C updateName​(C c,
                     C old)
        Updates the name of the container, i.e., gives it a unique name.
        Parameters:
        c - the container to process
        old - the old container this one is replacing, can be null
        Returns:
        the updated container (for convenience)