public boolean isNodeType()

in src/main/java/org/apache/sling/testing/mock/jcr/MockNodeType.java [75:83]


    public boolean isNodeType(final String nodeTypeName) {
        boolean isNt = this.name.equals(nodeTypeName);
        if (ntd != null && !isNt) {
            // node type inheritance checking
            NodeType[] supertypes = getSupertypes();
            isNt = Stream.of(supertypes).anyMatch(nt -> nt.getName().equals(nodeTypeName));
        }
        return isNt;
    }