imx.lib.varia
Class Util

java.lang.Object
  extended by imx.lib.varia.Util

public class Util
extends java.lang.Object

This class collects static methods that are useful and don't belong somewhere else.


Constructor Summary
Util()
           
 
Method Summary
static boolean contains(java.lang.Object[] objArray, java.lang.Object elem)
          returns true, if objArray contains elem.
static boolean equals(java.lang.Object a, java.lang.Object b)
          Allows to compare two objects without worring about null pointers.
static IntIterator getIntIterator(int[] intArray)
           
static java.lang.String getMemInfo()
           
static java.io.InputStream getResourceStream(java.lang.String fileName)
          Searches for a resource file and returns it as InputStream.
static java.awt.Image loadImage(java.lang.String fileName)
           
static void print(java.util.Properties prop)
           
static void wait(int milliseconds)
          Waits for the specified time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

equals

public static boolean equals(java.lang.Object a,
                             java.lang.Object b)
Allows to compare two objects without worring about null pointers.


contains

public static boolean contains(java.lang.Object[] objArray,
                               java.lang.Object elem)
returns true, if objArray contains elem. Uses identity and not equal(..).


getIntIterator

public static IntIterator getIntIterator(int[] intArray)

getResourceStream

public static java.io.InputStream getResourceStream(java.lang.String fileName)
                                             throws java.io.IOException
Searches for a resource file and returns it as InputStream.

Throws:
java.io.IOException

loadImage

public static java.awt.Image loadImage(java.lang.String fileName)

print

public static void print(java.util.Properties prop)

wait

public static void wait(int milliseconds)
Waits for the specified time.


getMemInfo

public static java.lang.String getMemInfo()