public long getEntryCount()

in slingshot/src/main/java/org/apache/sling/sample/slingshot/model/StreamInfo.java [55:67]


    public long getEntryCount() {
        if ( entryCount == -1 ) {
            entryCount = 0;
            if ( this.resource != null ) {
                for(final Resource rsrc : this.resource.getParent().getChildren()) {
                    if ( rsrc.isResourceType(StreamEntry.RESOURCETYPE) ) {
                        entryCount++;
                    }
                }
            }
        }
        return entryCount;
    }