Package com.helger.diver.api.version
Class DVRPseudoVersionRegistry
java.lang.Object
com.helger.diver.api.version.DVRPseudoVersionRegistry
- All Implemented Interfaces:
IDVRPseudoVersionRegistry
@NotThreadSafe
public class DVRPseudoVersionRegistry
extends Object
implements IDVRPseudoVersionRegistry
Registry for all known
IDVRPseudoVersion instances.- Since:
- 1.2.0
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDVRPseudoVersionLatest indicates the very latest version (including snapshot).static final IDVRPseudoVersionLatest indicates the very latest version (excluding snapshot).static final IDVRPseudoVersionOldest indicates the very first (oldest) version. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFromIDOrNull(String sID) Try to resolve the pseudo version with the provided ID.static DVRPseudoVersionRegistryinthashCode()com.helger.commons.state.EChangeregisterPseudoVersion(IDVRPseudoVersion aPseudoVersion) Register the provided pseudo version.final voidRemove all existing registrations and re-run the SPI searchtoString()
-
Field Details
-
OLDEST
Oldest indicates the very first (oldest) version. -
LATEST
Latest indicates the very latest version (including snapshot). -
LATEST_RELEASE
Latest indicates the very latest version (excluding snapshot).
-
-
Method Details
-
getInstance
-
reinitialize
public final void reinitialize()Remove all existing registrations and re-run the SPI search -
registerPseudoVersion
@Nonnull public com.helger.commons.state.EChange registerPseudoVersion(@Nonnull IDVRPseudoVersion aPseudoVersion) Description copied from interface:IDVRPseudoVersionRegistryRegister the provided pseudo version.- Specified by:
registerPseudoVersionin interfaceIDVRPseudoVersionRegistry- Parameters:
aPseudoVersion- The pseudo version to register. Must not benull.- Returns:
EChange.CHANGEDif it was added,EChange.UNCHANGEDif it was already present. Nevernull.
-
getFromIDOrNull
Description copied from interface:IDVRPseudoVersionRegistryTry to resolve the pseudo version with the provided ID.- Specified by:
getFromIDOrNullin interfaceIDVRPseudoVersionRegistry- Parameters:
sID- The pseudo version ID to look up.- Returns:
nullif no such pseudo version is present.
-
equals
-
hashCode
public int hashCode() -
toString
-