1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.api.service.idminter;
|
10
|
|
11
|
/**
|
12
|
* @author a.kohlbecker
|
13
|
* @since Dec 12, 2017
|
14
|
*
|
15
|
*/
|
16
|
public interface IdentifierMinter<T> {
|
17
|
|
18
|
public class Identifier<T>{
|
19
|
T localId;
|
20
|
String identifier;
|
21
|
}
|
22
|
|
23
|
public void setMinLocalId(T min);
|
24
|
|
25
|
public void setMaxLocalId(T max);
|
26
|
|
27
|
public Identifier<T> mint() throws OutOfIdentifiersException;
|
28
|
}
|