public List<TimelineGroup<G>> getGroups() {
        return groups;
    }
Gets all groups in this model

@return List&lt;TimelineGroup&lt;G&gt;&gt; list of groups
primefaces/src/main/java/org/primefaces/model/timeline/TimelineModel.java