VersionHistory - Unable to get size directly by getAllVersions.getSize()
Hi All,
Recently tried to use VersionHistory API (https://docs.adobe.com/content/docs/en/spec/jsr170/javadocs/jcr-2.0/javax/jcr/version/VersionHistory.html) I am able to use getAllVersions() but getAllVersions().getSize() gives me -1. To get the actual size so far I am having to loop the iterator and add the count within the loop.
Is there a better way or I missed something?
