mbien commented on PR #6590:
URL: https://github.com/apache/netbeans/pull/6590#issuecomment-1770895335
this works and is just one call:
```java
Queue<MajorVersion> versions = client.getAllMajorVersions(true);
int latestEA =
versions.stream().filter(Predicate.not(MajorVersion::isEarlyAccessOnly)).findFirst().get().getAsInt();
int latestGA =
versions.stream().filter(MajorVersion::isEarlyAccessOnly).findFirst().get().getAsInt();
System.out.println("latest EA: "+latestEA);
System.out.println("latest GA: "+latestGA);
```
will update this PR most likely
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists