de.interactive_instruments.ShapeChange.Transformation.Profiling
Class VersionNumber

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Transformation.Profiling.VersionNumber

public class VersionNumber
extends Object

Author:
Johannes Echterhoff (echterhoff interactive-instruments de)

Field Summary
 int[] components
           
 
Constructor Summary
VersionNumber(int component)
           
VersionNumber(int[] components)
           
VersionNumber(String vn)
           
 
Method Summary
 int compareTo(VersionNumber other)
          Compares this version number with the given one.
 VersionNumber copyForVersionRangeEnd()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

components

public int[] components
Constructor Detail

VersionNumber

public VersionNumber(String vn)

VersionNumber

public VersionNumber(int[] components)

VersionNumber

public VersionNumber(int component)
Method Detail

compareTo

public int compareTo(VersionNumber other)
Compares this version number with the given one. If the length of the component arrays is different, they are compared by assuming '0' as values for the missing components in the shorter component array.

Parameters:
other - the version number to compare this number with
Returns:
-1 if this version number is less than the other number, 0 if it is equal, 1 if it is bigger

copyForVersionRangeEnd

public VersionNumber copyForVersionRangeEnd()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.