com.phenix.pct
Class DLCVersion

java.lang.Object
  extended by com.phenix.pct.DLCVersion
All Implemented Interfaces:
Comparable

public class DLCVersion
extends Object
implements Comparable


Nested Class Summary
protected static class DLCVersion.Builder
           
 
Constructor Summary
DLCVersion(int major, int minor, String maintenance)
           
 
Method Summary
 int compareTo(Object other)
          Compares only major, minor and maintenance
 boolean equals(Object obj)
           
 String getDate()
           
 String getFullVersion()
           
 String getMaintenanceVersion()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
static DLCVersion getObject(File dir)
           
 String getPatchVersion()
           
 long getrCodeVersion()
           
 boolean is64bits()
           
protected static void readArch(DLCVersion.Builder builder, File prostart)
           
protected static void readVersionFile(DLCVersion.Builder builder, String str)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLCVersion

public DLCVersion(int major,
                  int minor,
                  String maintenance)
Method Detail

getObject

public static DLCVersion getObject(File dir)
                            throws IOException,
                                   RCodeInfo.InvalidRCodeException
Throws:
IOException
RCodeInfo.InvalidRCodeException

readVersionFile

protected static void readVersionFile(DLCVersion.Builder builder,
                                      String str)

readArch

protected static void readArch(DLCVersion.Builder builder,
                               File prostart)
                        throws IOException,
                               RCodeInfo.InvalidRCodeException
Throws:
IOException
RCodeInfo.InvalidRCodeException

getFullVersion

public String getFullVersion()

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

getMaintenanceVersion

public String getMaintenanceVersion()

getPatchVersion

public String getPatchVersion()

getDate

public String getDate()

is64bits

public boolean is64bits()

getrCodeVersion

public long getrCodeVersion()

toString

public String toString()
Overrides:
toString in class Object

equals

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

compareTo

public int compareTo(Object other)
Compares only major, minor and maintenance

Specified by:
compareTo in interface Comparable


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.