-
Notifications
You must be signed in to change notification settings - Fork 5
/
ISignature.java
62 lines (53 loc) · 1.35 KB
/
ISignature.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package org.genericsystem.api.core;
import java.io.Serializable;
import java.util.List;
/**
* Represents the minimum informations for identifying a IVertex.
*
* @author Nicolas Feybesse
*
* @param <T>
* the implementation of this interface.
*/
public interface ISignature<T extends ISignature<T>> {
/**
* Returns the meta of this signature.
*
* @return the <code>Signature</code> for which this signature is an instance.<br>
* This method returns <code>this</code> for the root signature.
*/
T getMeta();
/**
* Returns the supers of this signature.
*
* @return the list of supers signatures.<br>
* The returned list can be empty.
*/
List<T> getSupers();
/**
* Returns the value of this signature.
*
* @return the serializable value of this signature.<br>
* The returned value can be <code>null</code>.
*/
Serializable getValue();
/**
* Returns the components of this signature.
*
* @return the components of this signature.<br>
* The returned list can be empty.
*/
List<T> getComponents();
/**
* Returns the unique id of this signature.
*
* @return the design date representing this signature.
*/
long getTs();
/**
* Returns the birth ts of this signature.
*
* @return the ts of the transaction that make alive this signature.
*/
long getBirthTs();
}