de.skuzzle.test.snapshots.normalize.Reflection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snapshot-tests-normalize Show documentation
Show all versions of snapshot-tests-normalize Show documentation
Travers/Clean/Normalize object instances
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