public abstract class BundleVersionInfo<T> extends java.lang.Object implements java.lang.Comparable<BundleVersionInfo<?>>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BND_LAST_MODIFIED
Name of the BND attribute that provides the bundle's last modified timestamp
|
static long |
BND_LAST_MODIFIED_MISSING
Value for
getBundleLastModified() if corresponding header
is not present |
static java.lang.String |
SNAPSHOT_MARKER
Marker used by Maven to identify snapshots
|
Constructor and Description |
---|
BundleVersionInfo() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BundleVersionInfo<?> other)
Compare based on bundle version info, and for snapshots
based on
getBundleLastModified() |
abstract long |
getBundleLastModified()
Return the bundle last modification time, based on the BND_LAST_MODIFIED
manifest header, if available.
|
abstract java.lang.String |
getBundleSymbolicName() |
abstract T |
getSource() |
abstract Version |
getVersion() |
abstract boolean |
isBundle() |
abstract boolean |
isSnapshot() |
public static final java.lang.String SNAPSHOT_MARKER
public static final java.lang.String BND_LAST_MODIFIED
public static final long BND_LAST_MODIFIED_MISSING
getBundleLastModified()
if corresponding header
is not presentpublic abstract T getSource()
public abstract boolean isBundle()
public abstract java.lang.String getBundleSymbolicName()
public abstract Version getVersion()
public abstract boolean isSnapshot()
public abstract long getBundleLastModified()
public int compareTo(BundleVersionInfo<?> other)
getBundleLastModified()
compareTo
in interface java.lang.Comparable<BundleVersionInfo<?>>
Copyright © 2010 - 2020 Adobe. All Rights Reserved