uk.ac.ebi.intact.util
Class Utilities

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.Utilities

public class Utilities
extends java.lang.Object

Various IntAct related utilities. If a pice of code is used more than once, but does not really belong to a specific class, it should become part of this class.


Constructor Summary
Utilities()
           
 
Method Summary
static boolean equals(java.lang.Object o, java.lang.Object p)
          compares two objects.
static java.util.Properties getProperties(java.lang.String aParameterName)
          Initialise parameters from the properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

getProperties

public static java.util.Properties getProperties(java.lang.String aParameterName)
                                          throws java.io.IOException
Initialise parameters from the properties file.

Parameters:
aParameterName - The file name of the properties file from which to read. This parameter must be given on the command line as for example -Dconfig=pathname
java.io.IOException

equals

public static boolean equals(java.lang.Object o,
                             java.lang.Object p)
compares two objects. This is a workaround for the case where o is null and o.equals(p) returns exceptions.

Parameters:
o -
p -


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk