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
-
errors
- Error strings.
-
frameTarget_blank
- A constant indicating a document should be shown in a new unnamed
top-level window.
-
frameTarget_parent
- A constant indicating a document should be shown in the parent frame.
-
frameTarget_self
- A constant indicating a document should be shown in the current frame.
-
frameTarget_top
- A constant indicating a document should be shown in the topmost frame.
-
symantec.itools.util.GeneralUtils()
- Do not use, all-static class.
-
checkValidPercent(double)
- Checks to make sure the percent parameter is in range.
-
objectsEqual(Object, Object)
- Compares two objects passed in for equality.
-
removeCharAtIndex(String, int)
- Remove a character at the given index from the given string
errors
protected static java.util.ResourceBundle errors
- Error strings.
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)
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)
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)
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)
GeneralUtils
public GeneralUtils()
- Do not use, all-static class.
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
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
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