Class DefaultIdentifierService

    • Constructor Detail

      • DefaultIdentifierService

        public DefaultIdentifierService()
        Create a UUID-based IdentifierService.
      • DefaultIdentifierService

        public DefaultIdentifierService​(String prefix)
        Create a UUID-based IdentifierService with a default prefix value.
        Parameters:
        prefix - the prefix
    • Method Detail

      • getSupplier

        public Supplier<String> getSupplier​(String prefix,
                                            int hierarchy,
                                            int length)
        Description copied from interface: IdentifierService
        Get a Supplier that generates Strings with the provided prefix.
        Specified by:
        getSupplier in interface IdentifierService
        Parameters:
        prefix - the prefix
        hierarchy - the levels of hierarchy to add
        length - the length of each level of hierarchy
        Returns:
        a String Supplier