com.jstatcom.engine.gauss
Class LIBSet.SRCLibPair

java.lang.Object
  extended by com.jstatcom.engine.gauss.LIBSet.SRCLibPair
Enclosing class:
LIBSet

public static class LIBSet.SRCLibPair
extends java.lang.Object

Innter class that stores a libraryname - sourcefile mapping.


Field Summary
 java.lang.String libraryName
           
 java.lang.String srcFile
           
static javolution.xml.XmlFormat<LIBSet.SRCLibPair> SRCLibPair_XML
          XML format field for (de)serialization.
 
Constructor Summary
LIBSet.SRCLibPair(java.lang.String libraryName, java.lang.String srcFile)
          Creates a SRCLibPair.
 
Method Summary
 boolean equals(java.lang.Object o)
          Overrides equals to provide logical comparison of two different SRCLibPair objects.
 int hashCode()
          Overrides hashCode, because equals was overwritten.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcFile

public final java.lang.String srcFile

libraryName

public final java.lang.String libraryName

SRCLibPair_XML

public static final javolution.xml.XmlFormat<LIBSet.SRCLibPair> SRCLibPair_XML
XML format field for (de)serialization.

Constructor Detail

LIBSet.SRCLibPair

public LIBSet.SRCLibPair(java.lang.String libraryName,
                         java.lang.String srcFile)
Creates a SRCLibPair.

Parameters:
libraryName - the name of the library
srcFile - the source file that belongs to the library
Method Detail

hashCode

public final int hashCode()
Overrides hashCode, because equals was overwritten. The algorithm was taken from (Joshua Bloch, "Effective Java", Item 8) .

Overrides:
hashCode in class java.lang.Object
Returns:
hash code

equals

public final boolean equals(java.lang.Object o)
Overrides equals to provide logical comparison of two different SRCLibPair objects.

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare with
Returns:
true if src file and lib name are equal without regarding the case for the lib name