jonelo.sugar.util

Class Version

Implemented Interfaces:
Comparable

public class Version
extends java.lang.Object
implements Comparable

Sugar for Java 1.3 Copyright (C) 2001-2005 Dipl.-Inf. (FH) Johann Nepomuk Loefflmann, All Rights Reserved, http://www.jonelo.de This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Constructor Summary

Version(String version)
Version(int major, int sub)
Version(int major, int sub, int minor)

Method Summary

int
compareTo(Object o)
boolean
equals(Object o)
int
getMajor()
int
getMinor()
int
getSub()
int
hashCode()
String
toString()

Constructor Details

Version

public Version(String version)

Version

public Version(int major,
               int sub)

Version

public Version(int major,
               int sub,
               int minor)

Method Details

compareTo

public int compareTo(Object o)

equals

public boolean equals(Object o)

getMajor

public int getMajor()

getMinor

public int getMinor()

getSub

public int getSub()

hashCode

public int hashCode()

toString

public String toString()