Class symantec.itools.util.GeneralUtils
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.util.GeneralUtils

Object
   |
   +----symantec.itools.util.GeneralUtils

public final class GeneralUtils
extends Object
Useful utility functions and constants.

Version:
1.1, July 8, 1997
Author:
Symantec

Variable Index

 o errors
Error strings.
 o frameTarget_blank
A constant indicating a document should be shown in a new unnamed top-level window.
 o frameTarget_parent
A constant indicating a document should be shown in the parent frame.
 o frameTarget_self
A constant indicating a document should be shown in the current frame.
 o frameTarget_top
A constant indicating a document should be shown in the topmost frame.

Constructor Index

 o symantec.itools.util.GeneralUtils()
Do not use, all-static class.

Method Index

 o checkValidPercent(double)
Checks to make sure the percent parameter is in range.
 o objectsEqual(Object, Object)
Compares two objects passed in for equality.
 o removeCharAtIndex(String, int)
Remove a character at the given index from the given string

Variables

 o errors
protected static java.util.ResourceBundle errors
Error strings.

 o frameTarget_blank
public static java.lang.String frameTarget_blank
A constant indicating a document should be shown in a new unnamed top-level window. It is the second parameter for the method: java.applet.AppletContext.showDocument(URL, String). It is provided here for general use.

See Also:
showDocument(java.net.URL, java.lang.String)
 o frameTarget_parent
public static java.lang.String frameTarget_parent
A constant indicating a document should be shown in the parent frame. It is the second parameter for the method: java.applet.AppletContext.showDocument(URL, String). It is provided here for general use.

See Also:
showDocument(java.net.URL, java.lang.String)
 o frameTarget_self
public static java.lang.String frameTarget_self
A constant indicating a document should be shown in the current frame. It is the second parameter for the method: java.applet.AppletContext.showDocument(URL, String). It is provided here for general use.

See Also:
showDocument(java.net.URL, java.lang.String)
 o frameTarget_top
public static java.lang.String frameTarget_top
A constant indicating a document should be shown in the topmost frame. It is the second parameter for the method: java.applet.AppletContext.showDocument(URL, String). It is provided here for general use.

See Also:
showDocument(java.net.URL, java.lang.String)

Constructors

 o GeneralUtils
public GeneralUtils()
Do not use, all-static class.

Methods

 o checkValidPercent
public static void checkValidPercent(double percent) throws IllegalArgumentException
Checks to make sure the percent parameter is in range.

Throws: IllegalArgumentException
if the specified percentage value is unacceptable
 o objectsEqual
public static boolean objectsEqual(Object objectA,
                                   Object objectB)
Compares two objects passed in for equality. Handle null objects.

Parameters:
objectA - one of the objects to be compared
objectB - one of the objects to be compared
 o removeCharAtIndex
public static java.lang.String removeCharAtIndex(String string,
                                                 int index)
Remove a character at the given index from the given string

Parameters:
String - string the string to remove a character from.
int - index the index of the character to remove.
Returns:
the string without the character at the given index. If the string is null or empty, null or empty will be returned. If the index is out of bounds, the orignial string is returned.

All Packages  Class Hierarchy  This Package  Previous  Next  Index