cern.jjar.repository
Class Version

java.lang.Object
  extended by cern.jjar.repository.Version
All Implemented Interfaces:
Cloneable, Comparable

public class Version
extends Object
implements Comparable, Cloneable

simple class to handle JJar version information should be of format .- GKruk: I added linked versions: PRO, NEXT, PREV, DEV. So the version can be a number as above or one of the four links

Version:
$Id: Version.java,v 1.11 2006/11/30 10:42:48 enes Exp $
Author:
Geir Magnusson Jr. (original idea from Jakarta), Lionel Mestre

Field Summary
static Version DEV_VERSION
           
static Version NEXT_VERSION
           
static Version PREVIOUS_VERSION
           
static Version PRODUCTION_VERSION
           
 
Method Summary
 Object clone()
           
 int compareTo(Object other)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isAlias()
           
static void main(String[] args)
           
static void nextMajor(Version version)
           
static void nextMinor(Version version)
           
static void nextModifier(Version version)
           
static void nextTiny(Version version)
           
 String stringValue()
           
 String toString()
           
static Version valueOf(String version)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PRODUCTION_VERSION

public static final Version PRODUCTION_VERSION

NEXT_VERSION

public static final Version NEXT_VERSION

PREVIOUS_VERSION

public static final Version PREVIOUS_VERSION

DEV_VERSION

public static final Version DEV_VERSION
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

valueOf

public static Version valueOf(String version)

nextMajor

public static void nextMajor(Version version)

nextMinor

public static void nextMinor(Version version)

nextTiny

public static void nextTiny(Version version)

nextModifier

public static void nextModifier(Version version)

isAlias

public boolean isAlias()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

stringValue

public String stringValue()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable

main

public static void main(String[] args)


Copyright © 2007 CERN. All Rights Reserved.