notification-portlet-api/src/main/java/org/jasig/portlet/notice/NotificationResponse.java
@JsonIgnore
    @XmlTransient
    public int size() {
        return categories.stream()
                .map(NotificationCategory::getEntries)
                .mapToInt(List::size)
                .sum();
    }
@JsonIgnore
    @XmlTransient
    public int size() {
        return categories.stream()
                .map(NotificationCategory::getEntries)
                .mapToInt(List::size)
                .sum();
    }
@ JsonIgnore @ XmlTransient public int size ( ) { return categories . stream ( ) . map ( NotificationCategory :: getEntries ) . mapToInt ( List :: size ) . sum ( ) ; }
Provides the total number of notifications contained in the response.
Provides the total number of notifications contained in the response .