Class AbstractTypeOrdering<T>


  • public abstract class AbstractTypeOrdering<T>
    extends Object
    • Constructor Detail

      • AbstractTypeOrdering

        protected AbstractTypeOrdering()
    • Method Detail

      • ascendingSuperTypes

        public Stream<? extends T> ascendingSuperTypes​(T subType)
      • descendingSuperTypes

        public Stream<? extends T> descendingSuperTypes​(T subType)
      • superClass

        protected abstract T superClass​(T subType)
        Parameters:
        subType - A type (non-null)
        Returns:
        The superclass of the given type, or Object for interfaces, or null for Object.
      • declaredInterfaces

        protected abstract Stream<T> declaredInterfaces​(T subType)
        Parameters:
        subType - A type (non-null)
        Returns:
        A stream of all the interfaces of the given type, possibly empty.