org.avis.util
Class Util

java.lang.Object
  extended by org.avis.util.Util

public final class Util
extends Object

General Avis utility functions.

Author:
Matthew Phillips

Method Summary
static void checkNotNull(Object value, String name)
          Check a value is non-null or throw an IllegalArgumentException.
static boolean valuesEqual(Object value1, Object value2)
          Test if two objects are equal, handling null values and type differences.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

valuesEqual

public static boolean valuesEqual(Object value1,
                                  Object value2)
Test if two objects are equal, handling null values and type differences.


checkNotNull

public static void checkNotNull(Object value,
                                String name)
                         throws IllegalArgumentException
Check a value is non-null or throw an IllegalArgumentException.

Parameters:
value - The value to test.
name - The name of the value to be used in the exception.
Throws:
IllegalArgumentException


Copyright © 2008 Matthew Phillips. All Rights Reserved.