Package org.opennms.features.apilayer
Class VersionBean
- java.lang.Object
-
- org.opennms.features.apilayer.VersionBean
-
- All Implemented Interfaces:
java.lang.Comparable<org.opennms.integration.api.v1.runtime.Version>
,org.opennms.integration.api.v1.runtime.Version
public class VersionBean extends java.lang.Object implements org.opennms.integration.api.v1.runtime.Version
-
-
Constructor Summary
Constructors Constructor Description VersionBean(java.lang.String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(org.opennms.integration.api.v1.runtime.Version v)
boolean
equals(java.lang.Object o)
int
getMajor()
int
getMinor()
int
getPatch()
int
hashCode()
boolean
isSnapshot()
java.lang.String
toString()
-
-
-
Method Detail
-
getMajor
public int getMajor()
- Specified by:
getMajor
in interfaceorg.opennms.integration.api.v1.runtime.Version
-
getMinor
public int getMinor()
- Specified by:
getMinor
in interfaceorg.opennms.integration.api.v1.runtime.Version
-
getPatch
public int getPatch()
- Specified by:
getPatch
in interfaceorg.opennms.integration.api.v1.runtime.Version
-
isSnapshot
public boolean isSnapshot()
- Specified by:
isSnapshot
in interfaceorg.opennms.integration.api.v1.runtime.Version
-
compareTo
public int compareTo(org.opennms.integration.api.v1.runtime.Version v)
- Specified by:
compareTo
in interfacejava.lang.Comparable<org.opennms.integration.api.v1.runtime.Version>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-