All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.skuzzle.test.snapshots.normalize.Reflection Maven / Gradle / Ivy

There is a newer version: 1.11.0
Show newest version
package de.skuzzle.test.snapshots.normalize;

import java.util.stream.Stream;

final class Reflection {

    static Stream> superClassHierarchy(Class child) {
        if (child == Object.class) {
            return Stream.of(child);
        }
        return Stream.concat(Stream.of(child), superClassHierarchy(child.getSuperclass()));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy