Skip to content

Commit

Permalink
Extended API
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 9, 2024
1 parent 676f0de commit 6d236a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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 @@ -36,6 +36,7 @@
import com.helger.commons.collection.impl.CommonsTreeMap;
import com.helger.commons.collection.impl.ICommonsList;
import com.helger.commons.collection.impl.ICommonsSortedMap;
import com.helger.commons.collection.impl.ICommonsSortedSet;
import com.helger.commons.datetime.PDTFactory;
import com.helger.commons.datetime.XMLOffsetDateTime;
import com.helger.commons.hashcode.HashCodeGenerator;
Expand Down Expand Up @@ -142,6 +143,18 @@ public final ICommonsSortedMap <VESVersion, OffsetDateTime> getAllVersions ()
return m_aVersions.getClone ();
}

/**
* @return A copy of all contained versions as a sorted set. Never
* <code>null</code>.
* @since 1.1.0
*/
@Nonnull
@ReturnsMutableCopy
public final ICommonsSortedSet <VESVersion> getAllVersionsOnly ()
{
return m_aVersions.copyOfKeySet ();
}

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

0 comments on commit 6d236a5

Please sign in to comment.