FileDocCategorySizeDatePackage
Version.javaAPI DocExample2832Tue May 29 16:57:14 BST 2007com.sun.xml.ws.transport.tcp.util

Version

public final class Version extends Object
author
Alexey Stashok

Fields Summary
private final int
major
private final int
minor
Constructors Summary
public Version(int major, int minor)

        this.major = major;
        this.minor = minor;
    
Methods Summary
public booleanequals(java.lang.Object object)

        if (object instanceof Version) {
            final Version version = (Version) object;
            return major == version.major && minor == version.minor;
        }
        
        return false;
    
public intgetMajor()

        return major;
    
public intgetMinor()

        return minor;
    
public inthashCode()

        return (major << 16) | minor;
    
public java.lang.StringtoString()

        return major + "." + minor;