public final class InheritanceLevel extends Object implements Scalar<Integer>
This class is thread safe.
Result interpretation: 0 -> classes are identical. (ex. matching IOException with IOException) 1 -> single level inheritance. (ex. matching FileNotFoundException with IOException) 2 -> two inheritance levels. (ex. matching FileNotFoundException with Exception) ... Integer.MAX_VALUE -> classes are not related. (ex. matching FileNotFoundException with RuntimeException)
Scalar.NoNulls<T>
Constructor and Description |
---|
InheritanceLevel(Class<?> cderived,
Class<?> cbase)
Ctor.
|
Copyright © 2017–2018 Cactoos. All rights reserved.