de.tototec.sbuild

OSGiVersion

class OSGiVersion extends Comparable[OSGiVersion]

Version identifier for bundles and packages.

Version identifiers have four components.

OSGiVersion objects are immutable.

Annotations
@deprecated
Deprecated

(Since version 0.6.0.9002) Use internal.OSGiVersion instead

Linear Supertypes
Comparable[OSGiVersion], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OSGiVersion
  2. Comparable
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OSGiVersion(version: String)

    Created a version identifier from the specified string.

    Created a version identifier from the specified string.

    Here is the grammar for version strings.

    version ::= major('.'minor('.'micro('.'qualifier)?)?)?
    major ::= digit+
    minor ::= digit+
    micro ::= digit+
    qualifier ::= (alpha|digit|'_'|'-')+
    digit ::= [0..9]
    alpha ::= [a..zA..Z]

    There must be no whitespace in version.

    version

    String representation of the version identifier.

    Exceptions thrown
    IllegalArgumentException

    If version is improperly formatted.

  2. new OSGiVersion(major: Int, minor: Int, micro: Int)

    Creates a version identifier from the specified numerical components.

    Creates a version identifier from the specified numerical components.

    The qualifier is set to the empty string.

    major

    Major component of the version identifier.

    minor

    Minor component of the version identifier.

    micro

    Micro component of the version identifier.

    Exceptions thrown
    IllegalArgumentException

    If the numerical components are negative.

  3. new OSGiVersion(major: Int, minor: Int, micro: Int, qualifier: String)

    Creates a version identifier from the specified components.

    Creates a version identifier from the specified components.

    major

    Major component of the version identifier.

    minor

    Minor component of the version identifier.

    micro

    Micro component of the version identifier.

    qualifier

    Qualifier component of the version identifier. If null is specified, then the qualifier will be set to the empty string.

    Exceptions thrown
    IllegalArgumentException

    If the numerical components are negative or the qualifier string is invalid.

  4. new OSGiVersion()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (OSGiVersion, B)

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to ArrowAssoc[OSGiVersion] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compareTo(other: OSGiVersion): Int

    Compares this OSGiVersion object to another object.

    Compares this OSGiVersion object to another object.

    A version is considered to be less than another version if its major component is less than the other version's major component, or the major components are equal and its minor component is less than the other version's minor component, or the major and minor components are equal and its micro component is less than the other version's micro component, or the major, minor and micro components are equal and it's qualifier component is less than the other version's qualifier component (using String#compareTo).

    A version is considered to be equal to another version if the major, minor and micro components are equal and the qualifier component is equal (using String#compareTo).

    returns

    A negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified OSGiVersion object.

    Definition Classes
    OSGiVersion → Comparable
    Exceptions thrown
    ClassCastException

    If the specified object is not a OSGiVersion.

  11. def ensuring(cond: (OSGiVersion) ⇒ Boolean, msg: ⇒ Any): OSGiVersion

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to Ensuring[OSGiVersion] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (OSGiVersion) ⇒ Boolean): OSGiVersion

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to Ensuring[OSGiVersion] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): OSGiVersion

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to Ensuring[OSGiVersion] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): OSGiVersion

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to Ensuring[OSGiVersion] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(that: Any): Boolean

    Compares this OSGiVersion object to another object.

    Compares this OSGiVersion object to another object.

    A version is considered to be equal to another version if the major, minor and micro components are equal and the qualifier component is equal (using String.equals).

    returns

    true if object is a Version and is equal to this object; false otherwise.

    Definition Classes
    OSGiVersion → AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    returns

    An integer which is a hash code value for this object.

    Definition Classes
    OSGiVersion → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def major: Int

  23. def micro: Int

  24. def minor: Int

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def qualifier: String

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Returns the string representation of this version identifier.

    Returns the string representation of this version identifier.

    The format of the version string will be major.minor.micro if qualifier is the empty string or major.minor.micro.qualifier otherwise.

    returns

    The string representation of this version identifier.

    Definition Classes
    OSGiVersion → AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (OSGiVersion, B)

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to ArrowAssoc[OSGiVersion] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (oSGiVersion: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (oSGiVersion: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: OSGiVersion

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to ArrowAssoc[OSGiVersion] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (oSGiVersion: ArrowAssoc[OSGiVersion]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: OSGiVersion

    Implicit information
    This member is added by an implicit conversion from OSGiVersion to Ensuring[OSGiVersion] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (oSGiVersion: Ensuring[OSGiVersion]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Comparable[OSGiVersion]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from OSGiVersion to StringAdd

Inherited by implicit conversion any2stringfmt from OSGiVersion to StringFormat

Inherited by implicit conversion any2ArrowAssoc from OSGiVersion to ArrowAssoc[OSGiVersion]

Inherited by implicit conversion any2Ensuring from OSGiVersion to Ensuring[OSGiVersion]

Ungrouped