A C D E G H I L N O P R S T U V W Z

A

addFilter(String) - Static method in class org.mozilla.util.Debug
Sets a debug filter, for future consumption by this class, as well as other utility classes, like Log, etc.
ALL_FILTER_STRING - Static variable in class org.mozilla.util.Debug
 
applicationNameWithTimeStamp() - Static method in class org.mozilla.util.Log
 
arrayContainsElement(Object[], Object) - Static method in class org.mozilla.util.Utilities
Returns "true" if the passed in array contains the passed in element.
Assert - class org.mozilla.util.Assert.
The Assert class provides convenient means for condition testing.
assert_it(boolean) - Static method in class org.mozilla.util.Assert
Throws AssertionFailureException if enabled is true and test is false; otherwise, does nothing.
assert_it(boolean, String) - Static method in class org.mozilla.util.Assert
Throws AssertionFailureException with a message of message if enabled is true and test is false; otherwise, does nothing.
AssertionFailureException - exception org.mozilla.util.AssertionFailureException.
This exception is thrown when an Assert.assert() fails.
AssertionFailureException() - Constructor for class org.mozilla.util.AssertionFailureException
 
AssertionFailureException(String) - Constructor for class org.mozilla.util.AssertionFailureException
 

C

clone() - Method in class org.mozilla.util.Range
Creates and returns an Range that is identical to this one.
containsFilter(String) - Static method in class org.mozilla.util.Debug
Returns true if any of the following conditions are true: 1.
containsFilter(String, String) - Static method in class org.mozilla.util.Debug
Funnel-point method, which takes a filter and an "allFiltersgMatchThisString" string.
containsFilterWithPrefix(String) - Static method in class org.mozilla.util.Debug
Look for any "filter" with the specified prefix.
containsIndex(int) - Method in class org.mozilla.util.Range
Returns true if and only if index lies within this range.
containsRange(Range) - Method in class org.mozilla.util.Range
Returns true if and only if every element in otherRange is contained in this range.
count - Variable in class org.mozilla.util.Range
The length of the range
currentTimeString(boolean, boolean) - Static method in class org.mozilla.util.Utilities
Can return a string of the form "5:35:09pm", as opposed to "17:35:09" If "useTwentyFourHourTime" is "true", returns time in the form "17:35:09" If "showAMPMIndicator" is "true" it will include the "am" or "pm" text, otherwise it won't.

D

Debug - class org.mozilla.util.Debug.
Debug Vendor of debug "filter" strings set & queried by clients.
Debug() - Constructor for class org.mozilla.util.Debug
 

E

elapsedTime(String) - Static method in class org.mozilla.util.Debug
Identical to the "elapsedTime(String logMessage, String aFilter)" method, except it will only show the message if the filter "TIMING" exists in Debug's filter list.
elapsedTime(String, String) - Static method in class org.mozilla.util.Debug
This method does absolutely nothing unless: 1.
elapsedTimeSinceElapsedTime() - Static method in class org.mozilla.util.Debug
Returns the elapsed time since this class was initialized.
elapsedTimeSinceInitialization() - Static method in class org.mozilla.util.Debug
Returns the elapsed time since this class was initialized.
elapsedTimeSinceStartTime() - Static method in class org.mozilla.util.Debug
Returns the elapsed time since the preceeding startTiming() call, This method does not check debug filters...
enabled - Static variable in class org.mozilla.util.Assert
True if failed assertions should raise exceptions, or false if they should do nothing.
enableTimestampPrefix(boolean) - Static method in class org.mozilla.util.Log
Incrememnts or decrements whether or not to prefix logged messages with a timestamp.
endsWithIgnoringCase(String, String) - Static method in class org.mozilla.util.Utilities
Case insensitive String.endsWith()
equals(Object) - Method in class org.mozilla.util.Range
Returns true if and only if otherRange is an Range with the same start and count as this range.

G

getApplicationName() - Static method in class org.mozilla.util.Log
Returns the applicationName set by "setApplicationName()"
getApplicationVersion() - Static method in class org.mozilla.util.Log
Returns the applicationVersion set by "setApplicationVersion()"
getApplicationVersionDate() - Static method in class org.mozilla.util.Log
Returns the applicationVersion set by "setApplicationVersionDate()"
getConstrainedInt(int) - Method in class org.mozilla.util.Range
Returns a number guaranteed to be within this range, including endpoints
getCount() - Method in class org.mozilla.util.Range
Returns the number of elements in this range.
getEnd() - Method in class org.mozilla.util.Range
Returns the the last index contained within the range.
getHashCode(Object) - Static method in class org.mozilla.util.Debug
Returns a String containing the hexadecimal hashCode of the passed in object, of the form: "0x0000"
getMax() - Method in class org.mozilla.util.Range
Returns the max index (the index at start + count).
getNameAndHashCode(Object) - Static method in class org.mozilla.util.Debug
Returns a String containing the class name and hexadecimal hashCode of the passed in object, of the form: "fully.qualified.ClassName[0x0000]"
getPackageName(Class) - Static method in class org.mozilla.util.Utilities
 
getResourceBundle(String) - Static method in class org.mozilla.util.Utilities
This method is a simpler alternative to ResourceLoader.loadResourceBundle.
getStart() - Method in class org.mozilla.util.Range
Returns the start index of the range.
getTopLevelParent(Component) - Static method in class org.mozilla.util.Utilities
Uses "getParent()" to find this Component's top-level ancestor.
greaterThan(double, double) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aDouble' is not greater than 'minimum'; otherwise, does nothing.
greaterThan(int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is not greater than 'minimum'; otherwise, does nothing.

H

hashCode() - Method in class org.mozilla.util.Range
Overridden because equals() is overridden.
HELP_FILTER_STRING - Static variable in class org.mozilla.util.Debug
 

I

intersectsWithRange(Range) - Method in class org.mozilla.util.Range
Returns true if and only if otherRange intersects with this range.
isAdjacentToRange(Range) - Method in class org.mozilla.util.Range
Returns true if and only if otherRange is adjacent to this range; two ranges are adjacent if the max of one range is equal to the start of the other.
isAfterIndex(int) - Method in class org.mozilla.util.Range
Returns true if and only if the start index of this range is greater than index.
isAfterRange(Range) - Method in class org.mozilla.util.Range
Returns true if this range is after otherRange and the two ranges do not overlap.
isBeforeIndex(int) - Method in class org.mozilla.util.Range
Return true if and only if the end index of this range is less than index.
isBeforeRange(Range) - Method in class org.mozilla.util.Range
Returns true if and only if this range is before otherRange and the two ranges do not overlap.
isFalse(boolean, String) - Static method in class org.mozilla.util.ParameterCheck
Identical to isTrue, except the test is inverted.
isMutable() - Method in class org.mozilla.util.Range
Returns true only if this instance can change after it is created. The default implementation returns false because instances of this class can't change; subclasses that introduce mutability should override this method to return true.
isTrue(boolean, String) - Static method in class org.mozilla.util.ParameterCheck
Throws IllegalArgumentException if 'generalTest' is false; otherwise, does nothing.

L

lessThan(double, double) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aDouble' is not less than 'maximum'; otherwise, does nothing.
lessThan(int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is not less than 'maximum'; otherwise, does nothing.
Log - class org.mozilla.util.Log.
Log
Log() - Constructor for class org.mozilla.util.Log
 
log(Object) - Static method in class org.mozilla.util.Log
Writes "infoMessage" to stdout, prefixed by the string "ApplicationName: "
logDebugMessage(Object) - Static method in class org.mozilla.util.Log
Equivalent to calling "logDebugMessage(debugMessage, "ALL")".
logDebugMessage(Object, boolean) - Static method in class org.mozilla.util.Log
Log a message when "aCondition" is true, otherwise be silent.
logDebugMessage(Object, Object) - Static method in class org.mozilla.util.Log
Equivalent to calling "logDebugMessage(anInstance, debugMessage, "ALL")".
logDebugMessage(Object, Object, boolean) - Static method in class org.mozilla.util.Log
Log a message when "aCondition" is true, otherwise be silent.
logDebugMessage(Object, Object, String) - Static method in class org.mozilla.util.Log
Writes "debugMessage" to stderr, prefixed by the string "ApplicationName: ClassName[0xhashCode]: " *
logDebugMessage(Object, String) - Static method in class org.mozilla.util.Log
Funnel-point method for printing debug messages.
logError(Object) - Static method in class org.mozilla.util.Log
Writes "errorMessage" to stderr, prefixed by the string "ApplicationName error: "
logErrorMessage(Object) - Static method in class org.mozilla.util.Log
Writes "errorMessage" to stderr, prefixed by the string "ApplicationName: "

N

noGreaterThan(double, double) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aDouble' is greater than 'maximum'; otherwise, does nothing.
noGreaterThan(int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is greater than 'maximum'; otherwise, does nothing.
noLessThan(double, double) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aDouble' is less than 'minimum'; otherwise, does nothing.
noLessThan(int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is less than 'minimum'; otherwise, does nothing.
nonNull(Object) - Static method in class org.mozilla.util.ParameterCheck
Throws IllegalArgumentException if 'anObject' is null; otherwise, does nothing.
notEmpty(String) - Static method in class org.mozilla.util.ParameterCheck
Throws IllegalArgumentException if 'aString' is null or if 'aString' is an empty string; otherwise, does nothing.

O

org.mozilla.util - package org.mozilla.util
 
overlapWithRange(Range) - Method in class org.mozilla.util.Range
Returns the number of elements that are in both this range and otherRange.

P

ParameterCheck - class org.mozilla.util.ParameterCheck.
ParameterCheck provides convenient means for parameter checking.
printTime(String, String) - Static method in class org.mozilla.util.Debug
Print time since start of app, and time since the last time this method was called.
PROGRESS_FILTER_STRING - Static variable in class org.mozilla.util.Debug
 

R

Range - class org.mozilla.util.Range.
An Range is an object representing a range of integer values.
Range(int, int) - Constructor for class org.mozilla.util.Range
Creates an instance of Range with a start index newStart and an extent newCount.
Range(Range) - Constructor for class org.mozilla.util.Range
Creates an instance of Range from another Range object otherRange which must be non-null.
RangeException - exception org.mozilla.util.RangeException.
An RangeException is an exception that is thrown when a value is outside of its acceptable range.
RangeException() - Constructor for class org.mozilla.util.RangeException
Constructs an exception with no error string.
RangeException(String) - Constructor for class org.mozilla.util.RangeException
Constructs an exception with an error string.
rangeFromIntersection(Range) - Method in class org.mozilla.util.Range
Returns the intersection of this range and otherRange.
rangeFromUnion(Range) - Method in class org.mozilla.util.Range
Returns the union of this range and otherRange.
rangeShiftedByOffset(int) - Method in class org.mozilla.util.Range
Returns this range, with its start shifted by offset.
rangeWithinBounds(Range, int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aRange' is not completely between 'minimum' and 'maximum', inclusive; otherwise, does nothing.
rangeWithinCount(Range, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aRange' is not completely within a sequence that starts at 0 and has a length of 'count'; otherwise does nothing.
rangeWithinString(Range, String) - Static method in class org.mozilla.util.ParameterCheck
Checks a string and a range which is intended to indicate a substring.
removeAllFilters() - Static method in class org.mozilla.util.Debug
Removes all filters from the list of filters.
removeAllWhitespace(String) - Static method in class org.mozilla.util.Utilities
Removes leading, trailing, and internal whitespace from the passed-in string.
removeFilter(String) - Static method in class org.mozilla.util.Debug
Removes the specified filter from the list of filters.

S

setApplicationName(String) - Static method in class org.mozilla.util.Log
This string will be prepended to all output from this class.
setApplicationVersion(String) - Static method in class org.mozilla.util.Log
 
setApplicationVersionDate(String) - Static method in class org.mozilla.util.Log
 
setEnabled(boolean) - Static method in class org.mozilla.util.Assert
Sets enabled to newEnabled.
start - Variable in class org.mozilla.util.Range
The start index of the range
startTiming() - Static method in class org.mozilla.util.Debug
Starts a timer which can be stopped using one of the "stopTiming()" methods.
startTiming(String) - Static method in class org.mozilla.util.Debug
Identical to the "startTiming(String logMessage, String aFilter)" method, except it will only show the message if the filter "TIMING" exists in Debug's filter list.
startTiming(String, String) - Static method in class org.mozilla.util.Debug
This method does absolutely nothing unless: 1.
stringFromVector(Vector, String) - Static method in class org.mozilla.util.Utilities
Creates a String by combining the elements of aVector.

T

TIMING_FILTER_STRING - Static variable in class org.mozilla.util.Debug
 
toString() - Method in class org.mozilla.util.Range
Returns a String representation of this Range.

U

Utilities - class org.mozilla.util.Utilities.
 
Utilities() - Constructor for class org.mozilla.util.Utilities
 

V

vectorFromArray(Object[]) - Static method in class org.mozilla.util.Utilities
Convert an Array into a Vector.
vectorFromString(String, String) - Static method in class org.mozilla.util.Utilities
Take the given string and chop it up into a series of strings on "delimeter" boundries.
vectorsAreEqual(Vector, Vector) - Static method in class org.mozilla.util.Utilities
Amazing that "Vector" does not override Object's "equals()" method to do this itself!

W

withinCount(int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is not within a sequence that starts at 0 and has a length of 'count'; otherwise does nothing.
withinRange(double, double, double) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'aDouble' is less than 'minimum' or greater than 'maximum'; otherwise, does nothing.
withinRange(int, int, int) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is less than 'minimum' or greater than 'maximum'; otherwise, does nothing.
withinRange(int, Range) - Static method in class org.mozilla.util.ParameterCheck
Throws RangeException if 'anInt' is not within 'aRange'; otherwise, does nothing.

Z

ZeroRange - Static variable in class org.mozilla.util.Range
A zero range

A C D E G H I L N O P R S T U V W Z