A B C D F G H I J L M N O P Q R S T V W Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
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
String
to the given target, only if the target does not end with the givenString
to 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
true
if the given objects are equal or if both objects arenull
. - array(T...) - Static method in class org.fest.util.Arrays
-
Returns an array containing the given arguments.
- 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.
- 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
String
is notnull
or empty. - Closeables - Class in org.fest.util
-
Utility methods related to
Closeable
. - closeQuietly(Closeable...) - Static method in class org.fest.util.Closeables
-
Closes the given
Closeable
s, ignoring any thrown exceptions. - CollectionFilter<T> - Interface in org.fest.util
-
Filters elements in a collection.
- Collections - Class in org.fest.util
-
Utility methods related to
Collection
s. - 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
. - 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
- 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
- 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
s, ignoring any thrown exceptions.Flushable
- Flushables - Class in org.fest.util
-
Utility methods related to
.Flushable
- 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
- format(Object) - Static method in class org.fest.util.Arrays
-
Returns the
String
representation of the given array, ornull
if the given object is eithernull
or not an array. - format(Collection<?>) - Static method in class org.fest.util.Collections
-
Returns the
String
representation of the givenCollection
, ornull
if the givenCollection
isnull
. - format(Map<?, ?>) - Static method in class org.fest.util.Maps
-
Returns the
String
representation of the given map, ornull
if the given map isnull
. - 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).
G
- getProperty(String, Object) - Static method in class org.fest.util.Introspection
-
Returns a
PropertyDescriptor
for a property matching the given name in the given object.
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 onlynull
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.TextFileWriter
- 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
-
Indicates whether the given object is not
null
and is an array. - 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
Iterable
isnull
or empty. - isNullOrEmpty(String) - Static method in class org.fest.util.Strings
-
Indicates whether the given
String
isnull
or empty. - isNullOrEmpty(Collection<?>) - Static method in class org.fest.util.Collections
-
Indicates whether the given
Collection
isnull
or empty. - isNullOrEmpty(Map<?, ?>) - Static method in class org.fest.util.Maps
-
Indicates whether the given
Map
isnull
or empty. - isNullOrEmpty(T[]) - Static method in class org.fest.util.Arrays
-
Indicates whether the given array is
null
or 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
- Iterables - Class in org.fest.util
-
Utility methods related to
Iterable
s.
J
- join(String...) - Static method in class org.fest.util.Strings
-
Joins the given
String
s using a given delimiter.
L
- LINE_SEPARATOR - Static variable in class org.fest.util.SystemProperties
- Lists - Class in org.fest.util
-
Utility methods related to
java.util.List
s.
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.
- newArrayList(Iterable<? extends T>) - Static method in class org.fest.util.Lists
-
Creates a mutable
ArrayList
containing the given elements. - newArrayList(T...) - Static method in class org.fest.util.Lists
-
Creates a mutable
ArrayList
containing 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
LinkedHashSet
containing 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-
null
elements in the givenIterable
. - nonNullElementsIn(Collection<T>) - Static method in class org.fest.util.Collections
-
Returns all the non-
null
elements in the givenCollection
. - nonNullElementsIn(T[]) - Static method in class org.fest.util.Arrays
-
Returns all the non-
null
elements in the given array.
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. - Preconditions - Class in org.fest.util
-
Verifies correct argument values and state.
- primitiveTypes() - Static method in class org.fest.util.Types
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
String
surrounded by single quotes, ornull
if the givenString
isnull
.
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.
- Sets - Class in org.fest.util
-
Utility methods related to
Set
s. - sizeOf(Iterable<?>) - Static method in class org.fest.util.Iterables
-
Returns the size of the given
Iterable
. - Strings - Class in org.fest.util
-
Utility methods related to
String
s. - Strings.StringsToJoin - Class in org.fest.util
-
Knows how to join
String
s 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 givenString
to append. - SystemProperties - Class in org.fest.util
-
System properties.
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
- Throwables - Class in org.fest.util
-
Utility methods related to
s.Throwable
- to(String) - Method in class org.fest.util.Strings.StringToAppend
-
Appends the
String
specified in the constructor to theString
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 - 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 give2008-12-29T00:00:00
. - TypeFilter<T> - Class in org.fest.util
-
Filters elements of a collection by their data type.
- Types - Class in org.fest.util
-
Utilities related to Java data types.
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
String
s. - 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 All Packages