public class VersionSet extends Object implements VersionSelector
| Constructor and Description |
|---|
VersionSet(Map<NodeId,InternalVersion> versions)
Creates a
ChangeSetVersionSelector that will try to select a
version within the given set of versions. |
VersionSet(Map<NodeId,InternalVersion> versions,
boolean dateFallback)
Creates a
ChangeSetVersionSelector that will try to select a
version in the given set. |
| Modifier and Type | Method and Description |
|---|---|
InternalVersion |
select(InternalVersionHistory versionHistory)
Selects a version of the given version history.
|
Map<NodeId,InternalVersion> |
versions()
Returns the (modifiable) changeset of this selector.
|
public VersionSet(Map<NodeId,InternalVersion> versions)
ChangeSetVersionSelector that will try to select a
version within the given set of versions.versions - the set of versionspublic VersionSet(Map<NodeId,InternalVersion> versions, boolean dateFallback)
ChangeSetVersionSelector that will try to select a
version in the given set.versions - the set of versionsdateFallback - if true date fallback is enabled.public Map<NodeId,InternalVersion> versions()
public InternalVersion select(InternalVersionHistory versionHistory) throws RepositoryException
null. Please note,
that a version selector is not allowed to return the root version.
Selects a version from set having the given version history.select in interface VersionSelectorversionHistory - version history to select a version fromnull.RepositoryException - if an error occurs.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.