public class OperatingSystemSpec extends Versionable
maxInclusive, maxVersion, minInclusive, minVersion| Constructor and Description |
|---|
OperatingSystemSpec(java.lang.String name,
java.lang.String processor) |
OperatingSystemSpec(java.lang.String name,
java.lang.String processor,
org.fabric3.api.host.Version minVersion,
boolean minInclusive) |
OperatingSystemSpec(java.lang.String name,
java.lang.String processor,
org.fabric3.api.host.Version minVersion,
boolean minInclusive,
org.fabric3.api.host.Version maxVersion,
boolean maxInclusive) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the OS name.
|
java.lang.String |
getProcessor()
Returns the OS processor architecture or null if not specified.
|
int |
hashCode() |
boolean |
matches(org.fabric3.api.host.os.OperatingSystem os)
Returns true if the OperatingSystem matches the constraints of the present spec.
|
boolean |
matches(OperatingSystemSpec other)
Returns true if the other OperatingSystemSpec matches the constraints of the present spec.
|
java.lang.String |
toString() |
getMaxVersion, getMinVersion, isMaxInclusive, isMinInclusive, matches, setMaxInclusive, setMaxVersion, setMinInclusive, setMinVersionpublic OperatingSystemSpec(java.lang.String name,
java.lang.String processor)
public OperatingSystemSpec(java.lang.String name,
java.lang.String processor,
org.fabric3.api.host.Version minVersion,
boolean minInclusive)
public OperatingSystemSpec(java.lang.String name,
java.lang.String processor,
org.fabric3.api.host.Version minVersion,
boolean minInclusive,
org.fabric3.api.host.Version maxVersion,
boolean maxInclusive)
public java.lang.String getName()
public java.lang.String getProcessor()
public boolean matches(OperatingSystemSpec other)
other - the other OperatingSystemSpecpublic boolean matches(org.fabric3.api.host.os.OperatingSystem os)
os - the OperatingSystempublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object