com.ibm.tws.objects.types
Class TypeUtility

java.lang.Object
  extended bycom.ibm.tws.objects.types.TypeUtility

public class TypeUtility
extends java.lang.Object

This simple utility class can be used by object model classes to access common services.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
static long NULL_OFFSET
          The constant used to check for missing offset values.
 
Method Summary
static int compareTo(java.lang.Comparable first, java.lang.Comparable second)
          Compares two Comparable arguments.
static boolean equals(java.lang.Object first, java.lang.Object second)
          Returns true if the first object equals to the second one.
static java.lang.String toString(java.util.Collection c, java.lang.Class type)
          Returns a string representation of the specified collection.
static java.lang.String toUpperCase(java.lang.String text)
          Returns the upper case version of the specified string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.


NULL_OFFSET

public static final long NULL_OFFSET
The constant used to check for missing offset values.

See Also:
Constant Field Values
Method Detail

equals

public static boolean equals(java.lang.Object first,
                             java.lang.Object second)
Returns true if the first object equals to the second one. Both arguments may be null.

Parameters:
first - An object, or null.
second - An object, or null.
Returns:
True if the given arguments are equal.

compareTo

public static int compareTo(java.lang.Comparable first,
                            java.lang.Comparable second)
Compares two Comparable arguments. Both arguments may be null.

Parameters:
first - A Comparable argument, or null.
second - A Comparable argument, or null.
Returns:
The logical difference between the first and the second argument.

toUpperCase

public static java.lang.String toUpperCase(java.lang.String text)
Returns the upper case version of the specified string.

Parameters:
text - The input string.
Returns:
The upper case version of the input string.

toString

public static java.lang.String toString(java.util.Collection c,
                                        java.lang.Class type)
Returns a string representation of the specified collection.

Parameters:
c - The collection to be converted into a string.
type - The expected class for objects in the collection.
Returns:
A string representation of the collection.


Copyright © 2005 IBM All Rights Reserved.