A B C D F G H I J L M N O P Q R S T V W Y 

A

AbstractComparisonStrategy - Class in org.fest.util
Base implementation of ComparisonStrategy contract.
AbstractComparisonStrategy() - Constructor for class org.fest.util.AbstractComparisonStrategy
 
append(String) - Static method in class org.fest.util.Strings
Appends a given String to the given target, only if the target does not end with the given String to append.
appendCurrentThreadStackTraceToThrowable(Throwable, String) - Static method in class org.fest.util.Throwables
Appends the stack trace of the current thread to the one in the given Throwable.
areEqual(Object, Object) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
Returns true if actual and other are equal according to ComparatorBasedComparisonStrategy.comparator, false otherwise.
Handles the cases where one of the parameter is null so that internal ComparatorBasedComparisonStrategy.comparator does not have too.
areEqual(Object, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if actual and other are equal according to the implemented comparison strategy.
areEqual(Object, Object) - Static method in class org.fest.util.Objects
Returns true if the given objects are equal or if both objects are null.
areEqual(Object, Object) - Method in class org.fest.util.StandardComparisonStrategy
Returns true if actual and other are equal based on Object.equals(Object), false otherwise.
array(T...) - Static method in class org.fest.util.Arrays
Returns an array containing the given arguments.
arrayContains(Object, Object) - Method in class org.fest.util.AbstractComparisonStrategy
 
arrayContains(Object, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if given array contains given value according to the implemented comparison strategy, false otherwise.
Arrays - Class in org.fest.util
Utility methods related to arrays.

B

byType(Class<T>) - Static method in class org.fest.util.TypeFilter
Creates a new TypeFilter.

C

castIfBelongsToType(Object, Class<T>) - Static method in class org.fest.util.Objects
Casts the given object to the given type only if the object is of the given type.
close(Closeable...) - Static method in class org.fest.util.Closeables
Closes the given Closeables, ignoring any thrown exceptions.
Closeables - Class in org.fest.util
Utility methods related to Closeable.
CollectionFilter<T> - Interface in org.fest.util
Filter for elements in a collection.
Collections - Class in org.fest.util
Utility methods related to collections.
ComparatorBasedComparisonStrategy - Class in org.fest.util
Implements ComparisonStrategy contract with a comparison strategy based on a Comparator.
ComparatorBasedComparisonStrategy(Comparator) - Constructor for class org.fest.util.ComparatorBasedComparisonStrategy
Creates a new ComparatorBasedComparisonStrategy specifying the comparison strategy with given comparator.
ComparisonStrategy - Interface in org.fest.util
Describes the contract to implement a consistent comparison strategy that covers :
- comparing two objects for equality and order
- knowing if an object belongs to a group of objects (collection/array)
- determining duplicates in a group of objects (collection/array)
- string specific comparison
concat(Object...) - Static method in class org.fest.util.Strings
Concatenates the given objects into a single String.
copyOf(T[], int) - Static method in class org.fest.util.Arrays
Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
currentFolder() - Static method in class org.fest.util.Files
Returns the current directory.

D

Dates - Class in org.fest.util
Utility methods related to dates.
Dates() - Constructor for class org.fest.util.Dates
 
dayOfMonthOf(Date) - Static method in class org.fest.util.Dates
Dates Extracts the day of month of the given Date.
dayOfWeekOf(Date) - Static method in class org.fest.util.Dates
Extracts the day of week of the given Date, returned value follows Calendar.DAY_OF_WEEK .
delete(File) - Static method in class org.fest.util.Files
Deletes the given file or directory.
descriptorForProperty(String, Object) - Static method in class org.fest.util.Introspection
Returns a PropertyDescriptor for a property matching the given name in the given object.
duplicatesFrom(Iterable<?>) - Method in class org.fest.util.AbstractComparisonStrategy
 
duplicatesFrom(Collection<T>) - Static method in class org.fest.util.Collections
Returns any duplicate elements from the given collection.
duplicatesFrom(Iterable<?>) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
Returns any duplicate elements from the given Iterable according to ComparatorBasedComparisonStrategy.comparator.
duplicatesFrom(Iterable<?>) - Method in interface org.fest.util.ComparisonStrategy
Returns any duplicate elements from the given Iterable according to the implemented comparison strategy.
duplicatesFrom(Iterable<?>) - Method in class org.fest.util.StandardComparisonStrategy
Returns any duplicate elements from the given collection according to Object.equals(Object) comparison strategy.

F

fileNamesIn(String, boolean) - Static method in class org.fest.util.Files
Returns the names of the files inside the specified directory.
Files - Class in org.fest.util
Utility methods related to files.
FilesException - Exception in org.fest.util
Exception thrown by Files.
FilesException(String) - Constructor for exception org.fest.util.FilesException
Creates a new FilesException.
FilesException(String, Throwable) - Constructor for exception org.fest.util.FilesException
Creates a new FilesException.
filter(Collection<?>) - Method in interface org.fest.util.CollectionFilter
Filters a given collection.
filter(Collection<?>, CollectionFilter<T>) - Static method in class org.fest.util.Collections
 
filter(Collection<?>) - Method in class org.fest.util.TypeFilter
Filters the given collection by the type specified in this filter.
flush(Flushable...) - Static method in class org.fest.util.Flushables
Flushes the given Flushables, ignoring any thrown exceptions.
Flushables - Class in org.fest.util
Utility methods related to Flushable.
flushAndClose(Writer) - Static method in class org.fest.util.Files
Flushes and closes the given Writer.
flushAndClose(OutputStream) - Static method in class org.fest.util.Files
Flushes and closes the given OutputStream.
format(Object) - Static method in class org.fest.util.Arrays
Returns the String representation of the given array, or null if the given object is either null or not an array.
format(Collection<?>) - Static method in class org.fest.util.Collections
Returns the String representation of the given collection, or null if the given collection is null.
format(Map<?, ?>) - Static method in class org.fest.util.Maps
Returns the String representation of the given map, or null if the given map is null.
formatAsDatetime(Date) - Static method in class org.fest.util.Dates
Formats the given date using the ISO 8601 date-time format (yyyy-MM-dd'T'HH:mm:ss).
Method in synchronized because SimpleDateFormat is not thread safe (sigh).
formatAsDatetime(Calendar) - Static method in class org.fest.util.Dates
Formats the date of the given calendar using the ISO 8601 date-time format (yyyy-MM-dd'T'HH:mm:ss).
Method is thread safe.
formatAsDatetimeWithMs(Date) - Static method in class org.fest.util.Dates
Formats the given date using the ISO 8601 date-time format with millisecond (yyyy-MM-dd'T'HH:mm:ss:SSS).
Method in synchronized because SimpleDateFormat is not thread safe (sigh).

G

getComparator() - Method in class org.fest.util.ComparatorBasedComparisonStrategy
 

H

HASH_CODE_PRIME - Static variable in class org.fest.util.Objects
Prime number used to calculate the hash code of objects.
hashCodeFor(Object) - Static method in class org.fest.util.Objects
Returns the hash code for the given object.
hasOnlyNullElements(T[]) - Static method in class org.fest.util.Arrays
Returns true if the given array has only null elements, false otherwise.
hasOnlyNullElements(Iterable<?>) - Static method in class org.fest.util.Collections
Returns true if the given Iterable has only null elements, false otherwise.
hourOfDay(Date) - Static method in class org.fest.util.Dates
Extracts the hour of day if the given Date (24-hour clock).

I

instance() - Static method in class org.fest.util.StackTraces
Returns the singleton instance of this class.
instance() - Static method in class org.fest.util.StandardComparisonStrategy
Returns the singleton instance of this class.
Introspection - Class in org.fest.util
Utility methods related to JavaBeans Introspection.
IntrospectionError - Exception in org.fest.util
Error that occurred when using JavaBeans Instrospection.
IntrospectionError(String) - Constructor for exception org.fest.util.IntrospectionError
Creates a new IntrospectionError.
IntrospectionError(String, Throwable) - Constructor for exception org.fest.util.IntrospectionError
Creates a new IntrospectionError.
isArray(Object) - Static method in class org.fest.util.Arrays
Returns true if the given object is not null and is an array.
isEmpty(T[]) - Static method in class org.fest.util.Arrays
Returns true if the given array is null or empty.
isEmpty(Iterable<?>) - Static method in class org.fest.util.Collections
Returns true if the given Iterable is null or empty.
isEmpty(Map<?, ?>) - Static method in class org.fest.util.Maps
Returns true if the given map is null or empty.
isEmpty(String) - Static method in class org.fest.util.Strings
Returns true if the given String is null or empty.
isGreaterThan(Object, Object) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
 
isGreaterThan(Object, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if actual is greater than other, false otherwise.
isGreaterThan(Object, Object) - Method in class org.fest.util.StandardComparisonStrategy
 
isGreaterThanOrEqualTo(Object, Object) - Method in class org.fest.util.AbstractComparisonStrategy
 
isGreaterThanOrEqualTo(Object, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if actual is greater than or equal to other, false otherwise.
isLessThan(Object, Object) - Method in class org.fest.util.AbstractComparisonStrategy
 
isLessThan(Object, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if actual is less than other, false otherwise.
isLessThanOrEqualTo(Object, Object) - Method in class org.fest.util.AbstractComparisonStrategy
 
isLessThanOrEqualTo(Object, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if actual is less than or equal to other, false otherwise.
ISO_DATE_FORMAT - Static variable in class org.fest.util.Dates
ISO 8601 date format (yyyy-MM-dd), example : 2003-04-23
ISO_DATE_TIME_FORMAT - Static variable in class org.fest.util.Dates
ISO 8601 date-time format (yyyy-MM-dd'T'HH:mm:ss), example : 2003-04-26T13:01:02
ISO_DATE_TIME_FORMAT_WITH_MS - Static variable in class org.fest.util.Dates
ISO 8601 date-time format with millisecond (yyyy-MM-dd'T'HH:mm:ss.SSS), example : 2003-04-26T03:01:02.999
iterableContains(Iterable<?>, Object) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
Returns true if given Iterable contains given value according to ComparatorBasedComparisonStrategy.comparator, false otherwise.
If given Iterable is null or empty, return false.
iterableContains(Iterable<?>, Object) - Method in interface org.fest.util.ComparisonStrategy
Returns true if given Iterable contains given value according to the implemented comparison strategy, false otherwise.
If given Iterable is null, return false.
iterableContains(Iterable<?>, Object) - Method in class org.fest.util.StandardComparisonStrategy
Returns true if given Iterable contains given value based on Object.equals(Object), false otherwise.
If given Iterable is null, return false.
iterableRemoves(Iterable<?>, Object) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
Look for given value in given Iterable according to the Comparator, if value is found it is removed from it.
Does nothing if given Iterable is null (meaning no exception thrown).
iterableRemoves(Iterable<?>, Object) - Method in interface org.fest.util.ComparisonStrategy
Look for given value in given Iterable according to the implemented comparison strategy, if value is found it is removed from it.
If given Iterable is null, does nothing.
iterableRemoves(Iterable<?>, Object) - Method in class org.fest.util.StandardComparisonStrategy
Look for given value in given Iterable according to the implemented comparison strategy, if value is found it is removed from it.
If given Iterable is null, does nothing.

J

join(String...) - Static method in class org.fest.util.Strings
Joins the given Strings using a given delimiter.

L

LINE_SEPARATOR - Static variable in class org.fest.util.Systems
Returns the system-defined line separator.
list(T...) - Static method in class org.fest.util.Collections
Creates a list containing the given elements.
list(Iterable<T>) - Static method in class org.fest.util.Collections
Creates a list containing the given Iterable elements.

M

Maps - Class in org.fest.util
Utility methods related to maps.
millisecondOf(Date) - Static method in class org.fest.util.Dates
Extracts the millisecond of the given Date.
minuteOf(Date) - Static method in class org.fest.util.Dates
Dates Extracts the minute of the given Date.
monthOf(Date) - Static method in class org.fest.util.Dates
Dates Extracts the month of the given Date starting at 1 (January=1, February=2, ...).

N

namesOf(Class<?>...) - Static method in class org.fest.util.Objects
Returns an array containing the names of the given types.
newFile(String) - Static method in class org.fest.util.Files
Creates a new file using the given path.
newFolder(String) - Static method in class org.fest.util.Files
Creates a new directory using the given path.
newTemporaryFile() - Static method in class org.fest.util.Files
Creates a new file in the system's temporary directory.
newTemporaryFolder() - Static method in class org.fest.util.Files
Creates a new directory in the system's temporary directory.
nonNullElements(T[]) - Static method in class org.fest.util.Arrays
Returns a new array containing the non-null elements of the given array.
nonNullElements(Collection<T>) - Static method in class org.fest.util.Collections
Returns a new unmodifiable collection containing the non-null elements of the given collection.
nonNullElements(List<T>) - Static method in class org.fest.util.Collections
Returns a new unmodifiable list containing the non-null elements of the given list.

O

Objects - Class in org.fest.util
Utility methods related to objects.
org.fest.util - package org.fest.util
General-purpose utilities used by FEST modules.

P

parse(String) - Static method in class org.fest.util.Dates
Utility method to parse a Date following Dates.ISO_DATE_FORMAT, returns null if the given String is null.
parseDatetime(String) - Static method in class org.fest.util.Dates
Utility method to parse a Date following Dates.ISO_DATE_TIME_FORMAT, returns null if the given String is null.

Q

quote(String) - Static method in class org.fest.util.Strings
Returns the given String surrounded by single quotes, or null if the given String is null.
quote(Object) - Static method in class org.fest.util.Strings
Returns the given object surrounded by single quotes, only if the object is a String.

R

removeFestRelatedElementsFromStackTrace(Throwable) - Static method in class org.fest.util.Throwables
Removes the Fest elements from the Throwable stack trace that have little value for end user.

S

secondOf(Date) - Static method in class org.fest.util.Dates
Extracts the second of the given Date.
set(T...) - Static method in class org.fest.util.Collections
Creates a set containing the given elements.
sizeOf(Iterable<?>) - Static method in class org.fest.util.Collections
Returns the size of the given Iterable.
stackTraceInCurrentThread() - Method in class org.fest.util.StackTraces
Returns the stack trace for the current thread.
StackTraces - Class in org.fest.util
Utility methods related to stack traces.
StackTraces() - Constructor for class org.fest.util.StackTraces
Creates a new StackTraces.
StandardComparisonStrategy - Class in org.fest.util
Implements ComparisonStrategy contract with a comparison strategy based on Object.equals(Object) method, it is also based on Comparable.compareTo(Object) when Object are Comparable method.
stringContains(String, String) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
 
stringContains(String, String) - Method in interface org.fest.util.ComparisonStrategy
Returns true if given string contains given sequence according to the implemented comparison strategy, false otherwise.
stringContains(String, String) - Method in class org.fest.util.StandardComparisonStrategy
 
stringEndsWith(String, String) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
 
stringEndsWith(String, String) - Method in interface org.fest.util.ComparisonStrategy
Returns true if sstring ends with suffix according to the implemented comparison strategy, false otherwise.
stringEndsWith(String, String) - Method in class org.fest.util.StandardComparisonStrategy
 
Strings - Class in org.fest.util
Utility methods related to Strings.
Strings.StringsToJoin - Class in org.fest.util
Knows how to join Strings using a given delimiter.
Strings.StringToAppend - Class in org.fest.util
Knows how to append a given String to the given target, only if the target does not end with the given String to append.
stringStartsWith(String, String) - Method in class org.fest.util.ComparatorBasedComparisonStrategy
 
stringStartsWith(String, String) - Method in interface org.fest.util.ComparisonStrategy
Returns true if string starts with prefix according to the implemented comparison strategy, false otherwise.
stringStartsWith(String, String) - Method in class org.fest.util.StandardComparisonStrategy
 
Systems - Class in org.fest.util
System-related utilities.

T

temporaryFolder() - Static method in class org.fest.util.Files
Returns the system's temporary directory.
temporaryFolderPath() - Static method in class org.fest.util.Files
Returns the path of the system's temporary directory.
Throwables - Class in org.fest.util
Utility methods related to Throwables.
to(String) - Method in class org.fest.util.Strings.StringToAppend
Appends the String specified in the constructor to the String passed as argument.
toCalendar(Date) - Static method in class org.fest.util.Dates
Converts the given Date to Calendar, returns null if the given Date is null.
today() - Static method in class org.fest.util.Dates
 
tomorrow() - Static method in class org.fest.util.Dates
 
toString() - Method in class org.fest.util.ComparatorBasedComparisonStrategy
 
ToString - Class in org.fest.util
Obtains the toString representation of an object.
toStringOf(Object) - Static method in class org.fest.util.ToString
Returns the toString representation of the given object.
truncateTime(Date) - Static method in class org.fest.util.Dates
Returns a copy of the given date without the time part (which is set to 00:00:00), for example :
truncateTime(2008-12-29T23:45:12) will give 2008-12-29T00:00:00.
TypeFilter<T> - Class in org.fest.util
Filters elements of a collection by their data type.

V

VisibleForTesting - Annotation Type in org.fest.util
Indicates that the visibility of a type or member has been relaxed to make the code testable.

W

with(String) - Method in class org.fest.util.Strings.StringsToJoin
Specifies the delimeter to use to join Strings.

Y

yearOf(Date) - Static method in class org.fest.util.Dates
Extracts the year of the given Date.
yesterday() - Static method in class org.fest.util.Dates
 
A B C D F G H I J L M N O P Q R S T V W Y 

Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.