Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class PropertiesVersions extends Object
| Constructor and Description |
|---|
PropertiesVersions(Class<?> clazz,
String resource)
Loads properties from the classpath.
|
PropertiesVersions(InputStream in)
Loads properties from the provided inputstream.
|
PropertiesVersions(Properties properties)
Uses the provided properties directly, no defensive copy is made.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBuild()
Gets the build number that is applied to all products.
|
Version |
getVersion(String product)
Gets the version number for the provided product.
|
public PropertiesVersions(Class<?> clazz, String resource) throws IOException
IOExceptionpublic PropertiesVersions(InputStream in) throws IOException
IOExceptionpublic PropertiesVersions(Properties properties)
public Version getVersion(String product) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getBuild()
throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.