Package org.trellisldp.api
Interface IdentifierService
-
- All Known Implementing Classes:
DefaultIdentifierService
public interface IdentifierServiceThe IdentifierService provides a mechanism for creating new identifiers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Supplier<String>getSupplier()Get a Supplier that generates Strings with the provided prefix.Supplier<String>getSupplier(String prefix)Get a Supplier that generates Strings with the provided prefix.Supplier<String>getSupplier(String prefix, int hierarchy, int length)Get a Supplier that generates Strings with the provided prefix.
-
-
-
Method Detail
-
getSupplier
Supplier<String> getSupplier(String prefix, int hierarchy, int length)
Get a Supplier that generates Strings with the provided prefix.- Parameters:
prefix- the prefixhierarchy- the levels of hierarchy to addlength- the length of each level of hierarchy- Returns:
- a String Supplier
-
getSupplier
Supplier<String> getSupplier(String prefix)
Get a Supplier that generates Strings with the provided prefix.- Parameters:
prefix- the prefix- Returns:
- a String Supplier
-
-