return (EnumDeclaration)getTypes().stream().filter(type -> type.getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst().orElse(null); | return getTypes().stream().filter(type -> type.getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst().map(t -> (EnumDeclaration)t); | (EnumDeclaration)getTypes().stream().filter(type -> type.getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst().orElse(null) | getTypes().stream().filter(type -> type.getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst().map(t -> (EnumDeclaration)t) | javaparser | 1ff8db9b9d9fdd6c9655d9d37761a00e98ab6d04 | com.github.javaparser.ast.CompilationUnit | | _1 | getEnumByName |
---|
_2 | getEnumByName |
---|
| v0 | getTypes().stream().filter(type -> type.getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst() |
---|
| - com.github.javaparser.ast.body.EnumDeclaration
| v0 | getTypes().stream().filter(type -> type.getNameAsString().equals(enumName) && type instanceof EnumDeclaration).findFirst() |
---|
| Returns | False |