public final class VersionReference extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
VersionProperty |
getProperty()
Return the
VersionProperty or null if this reference is not a
property. |
String |
getValue()
Return the version of
null if this reference is backed by a property. |
int |
hashCode() |
boolean |
isProperty()
Specify if this reference defines a property.
|
static VersionReference |
ofProperty(String internalProperty) |
static VersionReference |
ofProperty(VersionProperty property) |
static VersionReference |
ofValue(String value) |
String |
toString() |
public static VersionReference ofProperty(VersionProperty property)
public static VersionReference ofProperty(String internalProperty)
public static VersionReference ofValue(String value)
public boolean isProperty()
true if this version is backed by a propertypublic VersionProperty getProperty()
VersionProperty or null if this reference is not a
property.nullpublic String getValue()
null if this reference is backed by a property.nullCopyright © 2020 Pivotal Software, Inc.. All rights reserved.