Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- actualIsEmpty() - Static method in class org.fest.util.FailureMessages
- actualIsNull() - Static method in class org.fest.util.FailureMessages
- append(String) - Static method in class org.fest.util.Strings
-
Appends a given
Stringto the given target, only if the target does not end with the givenStringto append. - appendStackTraceInCurentThreadToThrowable(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) - Static method in class org.fest.util.Objects
-
Returns
trueif the given objects are equal or if both objects arenull. - areEqualArrays(Object, Object) - Static method in class org.fest.util.Objects
- array(T...) - Static method in class org.fest.util.Arrays
-
Returns an array containing the given arguments.
- ArrayFormatter - Class in org.fest.util
-
Creates a
Stringrepresentation of an array. - ArrayFormatter() - Constructor for class org.fest.util.ArrayFormatter
- Arrays - Class in org.fest.util
-
Utility methods related to arrays.
- Arrays() - Constructor for class org.fest.util.Arrays
B
- byType(Class<T>) - Static method in class org.fest.util.TypeFilter
-
Creates a new
.TypeFilter
C
- cannotCreateNewFile(String, Exception) - Static method in class org.fest.util.Files
- cannotCreateNewFile(String, String) - Static method in class org.fest.util.Files
- cannotCreateNewFile(String, String, Exception) - Static method in class org.fest.util.Files
- 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.
- checkNotNull(T) - Static method in class org.fest.util.Preconditions
-
Verifies that the given object reference is not
null. - checkNotNullOrEmpty(String) - Static method in class org.fest.util.Preconditions
-
Verifies that the given
Stringis notnullor empty. - Closeables - Class in org.fest.util
-
Utility methods related to
Closeable. - Closeables() - Constructor for class org.fest.util.Closeables
- closeCloseable(Closeable) - Static method in class org.fest.util.Closeables
- closeQuietly(Closeable...) - Static method in class org.fest.util.Closeables
-
Closes the given
Closeables, ignoring any thrown exceptions. - COLLECTION_TYPES - Static variable in class org.fest.util.Types
- CollectionFilter<T> - Interface in org.fest.util
-
Filters elements in a collection.
- Collections - Class in org.fest.util
-
Utility methods related to
Collections. - Collections() - Constructor for class org.fest.util.Collections
- collectionTypes() - Static method in class org.fest.util.Types
- concat(Object...) - Static method in class org.fest.util.Strings
-
Concatenates the given objects into a single
String. - contentOf(File, String) - Static method in class org.fest.util.Files
-
Loads the text content of a file into a character string.
- contentOf(File, Charset) - Static method in class org.fest.util.Files
-
Loads the text content of a file into a character string.
- 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. - deepToString(Object[], StringBuilder, Set<Object[]>) - Method in class org.fest.util.ArrayFormatter
- delete(File) - Static method in class org.fest.util.Files
-
Deletes the given file or directory.
- duplicatesFrom(Collection<T>) - Static method in class org.fest.util.Collections
-
Returns any duplicate elements from the given
Collection.
F
- FailureMessages - Class in org.fest.util
- FailureMessages() - Constructor for class org.fest.util.FailureMessages
- fileNamesIn(File, boolean) - Static method in class org.fest.util.Files
-
Returns the names of the files inside the specified directory.
- 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.
- Files() - Constructor for class org.fest.util.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
- filter(Collection<?>) - Method in class org.fest.util.TypeFilter
-
Filters the given collection by the type specified in this filter.
- findGetter(String, Object) - Static method in class org.fest.util.Introspection
- findMethod(String, Object) - Static method in class org.fest.util.Introspection
- flush(Flushable...) - Static method in class org.fest.util.Flushables
-
Flushes the given
s, ignoring any thrown exceptions.Flushable - Flushables - Class in org.fest.util
-
Utility methods related to
.Flushable - Flushables() - Constructor for class org.fest.util.Flushables
- flushAndClose(OutputStream) - Static method in class org.fest.util.Files
-
Flushes and closes the given
.OutputStream - flushAndClose(Writer) - Static method in class org.fest.util.Files
-
Flushes and closes the given
.Writer - flushFlushable(Flushable) - Static method in class org.fest.util.Flushables
- format(Object) - Method in class org.fest.util.ArrayFormatter
- format(Object) - Static method in class org.fest.util.Arrays
-
Returns the
Stringrepresentation of the given array, ornullif the given object is eithernullor not an array. - format(Collection<?>) - Static method in class org.fest.util.Collections
-
Returns the
Stringrepresentation of the givenCollection, ornullif the givenCollectionisnull. - format(Map<?, ?>) - Static method in class org.fest.util.Maps
-
Returns the
Stringrepresentation of the given map, ornullif the given map isnull. - format(Map<?, ?>, Object) - Static method in class org.fest.util.Maps
- 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. - 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). - 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). - formatObjectArray(Object) - Method in class org.fest.util.ArrayFormatter
- formatPrimitiveArray(Object) - Method in class org.fest.util.ArrayFormatter
- FORMATTER - Static variable in class org.fest.util.Arrays
G
- getProperty(String, Object) - Static method in class org.fest.util.Introspection
-
Returns a
PropertyDescriptorfor a property matching the given name in the given object.
H
- hasElements(T[]) - Static method in class org.fest.util.Arrays
- 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
trueif the given array has onlynullelements,falseotherwise. - 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.TextFileWriter
- INSTANCE - Static variable in class org.fest.util.TextFileWriter
- Introspection - Class in org.fest.util
-
Utility methods related to JavaBeans Introspection.
- Introspection() - Constructor for class org.fest.util.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
-
Indicates whether the given object is not
nulland is an array. - isArrayTypePrimitive(Object) - Method in class org.fest.util.ArrayFormatter
- isEmpty(String) - Static method in class org.fest.util.Strings
-
Deprecated.
- isNullOrEmpty(Iterable<?>) - Static method in class org.fest.util.Iterables
-
Indicates whether the given
Iterableisnullor empty. - isNullOrEmpty(String) - Static method in class org.fest.util.Strings
-
Indicates whether the given
Stringisnullor empty. - isNullOrEmpty(Collection<?>) - Static method in class org.fest.util.Collections
-
Indicates whether the given
Collectionisnullor empty. - isNullOrEmpty(Map<?, ?>) - Static method in class org.fest.util.Maps
-
Indicates whether the given
Mapisnullor empty. - isNullOrEmpty(T[]) - Static method in class org.fest.util.Arrays
-
Indicates whether the given array is
nullor empty. - 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 - isObjectArray(Object) - Method in class org.fest.util.ArrayFormatter
- Iterables - Class in org.fest.util
-
Utility methods related to
Iterables. - Iterables() - Constructor for class org.fest.util.Iterables
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.SystemProperties
- lineSeparator() - Static method in class org.fest.util.SystemProperties
- Lists - Class in org.fest.util
-
Utility methods related to
java.util.Lists. - Lists() - Constructor for class org.fest.util.Lists
- loadContents(File, Charset) - Static method in class org.fest.util.Files
- logger - Static variable in class org.fest.util.Closeables
M
- Maps - Class in org.fest.util
-
Utility methods related to maps.
- Maps() - Constructor for class org.fest.util.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.
- newArrayList(Iterable<? extends T>) - Static method in class org.fest.util.Lists
-
Creates a mutable
ArrayListcontaining the given elements. - newArrayList(T...) - Static method in class org.fest.util.Lists
-
Creates a mutable
ArrayListcontaining the given elements. - 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.
- newLinkedHashSet(T...) - Static method in class org.fest.util.Sets
-
Creates a mutable
LinkedHashSetcontaining the given elements. - 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.
- nonNullElementsIn(Iterable<T>) - Static method in class org.fest.util.Iterables
-
Returns all the non-
nullelements in the givenIterable. - nonNullElementsIn(Collection<T>) - Static method in class org.fest.util.Collections
-
Returns all the non-
nullelements in the givenCollection. - nonNullElementsIn(T[]) - Static method in class org.fest.util.Arrays
-
Returns all the non-
nullelements in the given array. - notAnArrayOfPrimitives(Object) - Method in class org.fest.util.ArrayFormatter
- NULL - Static variable in class org.fest.util.ArrayFormatter
O
- Objects - Class in org.fest.util
-
Utility methods related to objects.
- Objects() - Constructor for class org.fest.util.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. - Preconditions - Class in org.fest.util
-
Verifies correct argument values and state.
- Preconditions() - Constructor for class org.fest.util.Preconditions
- PRIMITIVE_TYPES - Static variable in class org.fest.util.Types
- primitiveTypes() - Static method in class org.fest.util.Types
- propertyNotFoundErrorMessage(String, Object) - Static method in class org.fest.util.Introspection
Q
- 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. - quote(String) - Static method in class org.fest.util.Strings
-
Returns the given
Stringsurrounded by single quotes, ornullif the givenStringisnull.
R
- removeFestRelatedElementsFromStackTrace(Throwable) - Static method in class org.fest.util.Throwables
-
Removes the FEST-related elements from the
stack trace that have little value for end user.Throwable
S
- secondOf(Date) - Static method in class org.fest.util.Dates
-
Extracts the second of the given Date.
- serialVersionUID - Static variable in exception org.fest.util.FilesException
- serialVersionUID - Static variable in exception org.fest.util.IntrospectionError
- Sets - Class in org.fest.util
-
Utility methods related to
Sets. - Sets() - Constructor for class org.fest.util.Sets
- sizeOf(Iterable<?>) - Static method in class org.fest.util.Iterables
-
Returns the size of the given
Iterable. - stackTraceInCurrentThread() - Static method in class org.fest.util.Throwables
- stackTraceInCurrentThread(String) - Static method in class org.fest.util.Throwables
- strings - Variable in class org.fest.util.Strings.StringsToJoin
-
The
Strings to join. - Strings - Class in org.fest.util
-
Utility methods related to
Strings. - Strings() - Constructor for class org.fest.util.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
Stringto the given target, only if the target does not end with the givenStringto append. - StringsToJoin(String...) - Constructor for class org.fest.util.Strings.StringsToJoin
-
Creates a new
.Strings.StringsToJoin - StringToAppend(String) - Constructor for class org.fest.util.Strings.StringToAppend
- SystemProperties - Class in org.fest.util
-
System properties.
- SystemProperties() - Constructor for class org.fest.util.SystemProperties
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.
- TextFileWriter - Class in org.fest.util
- TextFileWriter() - Constructor for class org.fest.util.TextFileWriter
- Throwables - Class in org.fest.util
-
Utility methods related to
s.Throwable - Throwables() - Constructor for class org.fest.util.Throwables
- to(String) - Method in class org.fest.util.Strings.StringToAppend
-
Appends the
Stringspecified in the constructor to theStringpassed as argument. - toAppend - Variable in class org.fest.util.Strings.StringToAppend
- 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 - Class in org.fest.util
-
Obtains the
toStringrepresentation of an object. - ToString() - Constructor for class org.fest.util.ToString
- toStringOf(File) - Static method in class org.fest.util.ToString
- toStringOf(Class<?>) - Static method in class org.fest.util.ToString
- toStringOf(Float) - Static method in class org.fest.util.ToString
- toStringOf(Long) - Static method in class org.fest.util.ToString
- toStringOf(Object) - Static method in class org.fest.util.ToString
-
Returns the
toStringrepresentation of the given object. - toStringOf(Calendar) - Static method in class org.fest.util.ToString
- toStringOf(Collection<?>) - Static method in class org.fest.util.ToString
- toStringOf(Comparator<?>) - Static method in class org.fest.util.ToString
- toStringOf(Date) - Static method in class org.fest.util.ToString
- toStringOf(Map<?, ?>) - Static method in class org.fest.util.ToString
- 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 give2008-12-29T00:00:00. - type - Variable in class org.fest.util.TypeFilter
- TypeFilter<T> - Class in org.fest.util
-
Filters elements of a collection by their data type.
- TypeFilter(Class<T>) - Constructor for class org.fest.util.TypeFilter
- Types - Class in org.fest.util
-
Utilities related to Java data types.
- Types() - Constructor for class org.fest.util.Types
V
- VisibleForTesting - Annotation Interface 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. - write(File, String...) - Method in class org.fest.util.TextFileWriter
- write(File, Charset, String...) - Method in class org.fest.util.TextFileWriter
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
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form