com.sun.pkg.client
Class Version.DotSequence

java.lang.Object
  extended by com.sun.pkg.client.Version.DotSequence
All Implemented Interfaces:
java.lang.Comparable<Version.DotSequence>
Enclosing class:
Version

public static class Version.DotSequence
extends java.lang.Object
implements java.lang.Comparable<Version.DotSequence>

The DotSequence class represents the x.y.z parts of a Version object.


Method Summary
 int compareTo(Version.DotSequence d)
           
 boolean matches(Version.DotSequence d)
           
 java.lang.String toString()
          Returns a string form of the DotSequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Version.DotSequence d)
Specified by:
compareTo in interface java.lang.Comparable<Version.DotSequence>

matches

public boolean matches(Version.DotSequence d)

toString

public java.lang.String toString()
Returns a string form of the DotSequence.

Overrides:
toString in class java.lang.Object
Returns:
a string representing the DotSequence. This are the numbers of the Dotsequence separated by periods.