Class UniqueLocationGenerator

java.lang.Object
com._1c.g5.v8.dt.internal.platform.services.core.UniqueLocationGenerator

public class UniqueLocationGenerator extends Object
Unique location generator.
  • Constructor Details

    • UniqueLocationGenerator

      public UniqueLocationGenerator()
  • Method Details

    • generate

      public Path generate(Path parentPath, String namePrefix, Collection<Path> existingLocations)
      Generate location name, based on given name prefix and collection of the existing locations.
      Also checks generating location existence.
      Parameters:
      parentPath - the parent path, to start generating locations in, cannot be null
      namePrefix - name prefix to generate name with, cannot be null
      existingLocations - collection of the existing location to check uniqueness for, cannot be null
      Returns:
      unique location, based on given name prefix and collection of the existing names, never null