Skip to content

Commit

Permalink
API extension
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Apr 11, 2024
1 parent 9ec5f69 commit 31a7e54
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ph-diver-repo/src/main/java/com/helger/diver/repo/toc/RepoToc.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ public final ICommonsSortedSet <VESVersion> getAllVersionsOnly ()
return m_aVersions.copyOfKeySet ();
}

/**
* @return A copy of all contained versions as a list. Never
* <code>null</code>.
* @since 1.2.0
*/
@Nonnull
@ReturnsMutableCopy
public final ICommonsList <VESVersion> getAllVersionsAsList ()
{
return new CommonsArrayList <> (m_aVersions.keySet ());
}

/**
* Get the latest overall version, including snapshot versions.
*
Expand Down

0 comments on commit 31a7e54

Please sign in to comment.