Package org.nustaq.serialization
Class FSTClazzLineageInfo
java.lang.Object
org.nustaq.serialization.FSTClazzLineageInfo
Represents a ordered class lineage based on the specificity of classes, where specificity is defined as follows:
null has specificity 0
java.lang.Object has specificity 0
an interface without any extends clause has specificity 1
a class or interface has a specificity of 1 + the specificity of the superclass + the sum of the specificity of the implemented interfaces.
- Author:
- Odd Moeller 2017-03-08.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>[]
getLineage
(Class<?> clazz) Returns the lineage of the specified class ordered by specificity (the class itself is at position 0 since it is most specific in its lineage).static int
getSpecificity
(Class<?> clazz) Returns the specificity of the specified class as defined above.
-
Field Details
-
SPECIFICITY_CLASS_COMPARATOR
-
-
Method Details
-
getSpecificity
Returns the specificity of the specified class as defined above. -
getLineage
Returns the lineage of the specified class ordered by specificity (the class itself is at position 0 since it is most specific in its lineage).
-