public final class ClassStreams extends Object
| Modifier and Type | Method and Description |
|---|---|
static Stream<Class> |
selfAndSupertypes(Class type)
Creates a stream of classes containing the class itself and all its the supertypes (excluding Object.class) of
the specified type.
|
static Stream<Class> |
supertypes(Class type)
Creates a stream of classes representing the supertypes (excluding Object.class) of the specified type.
|
public static Stream<Class> supertypes(Class type)
type - the type whose supertypes should be returned as a streampublic static Stream<Class> selfAndSupertypes(Class type)
type - the type whose supertypes should be returned as a streamCopyright © 2016 DevCon5 GmbH. All rights reserved.