A C D E F G H I K L M N O P R S T U V W X Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(Object) - Method in class com.gentlyweb.utils.GeneralFilter
-
Cycle over all our fields and check to see if this object matches.
- Accessor - Class in com.gentlyweb.utils
-
This class is used to perform access into a Java object using a String value with a specific notation.
- Accessor() - Constructor for class com.gentlyweb.utils.Accessor
- add(TimeDuration) - Method in class com.gentlyweb.utils.TimeDuration
- addAll(File, FileFilter) - Method in class com.gentlyweb.utils.FileWatcher
-
Add all the files in the specified directory.
- addField(Getter, String) - Method in class com.gentlyweb.utils.GeneralComparator
- addField(String, boolean, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for a boolean comparison.
- addField(String, double, double) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for a number range comparison.
- addField(String, double, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for a number comparison.
- addField(String, Object, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for an Object comparison.
- addField(String, Object, Comparator, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for an Object comparison.
- addField(String, String) - Method in class com.gentlyweb.utils.GeneralComparator
-
Add a field that we sort on, if you readd the same field then the type is just updated.
- addField(String, String, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for a String comparison.
- addField(String, Date, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field for a Date comparison.
- addField(String, Date, Date) - Method in class com.gentlyweb.utils.GeneralFilter
-
Add a new field to check for the date to be in the specified range.
- addFieldAfter(String, String, String) - Method in class com.gentlyweb.utils.GeneralComparator
-
Add a new field in AFTER the named field, if we don't have the named field then we just call
GeneralComparator.addField(String,String)
which will add the field in after all the others. - addFieldAtIndex(String, String, int) - Method in class com.gentlyweb.utils.GeneralComparator
-
Add a new field in at the specified index.
- addFieldBefore(String, String, String) - Method in class com.gentlyweb.utils.GeneralComparator
-
Add a new field in BEFORE the named field, if we don't have the named field then we just call
GeneralComparator.addField(String,String)
which will add the field in after all the others. - addFile(File) - Method in class com.gentlyweb.utils.FileWatcher
-
Add a file to be watched.
- addFileChangeListener(FileChangeListener) - Method in class com.gentlyweb.utils.FileWatcher
- addFileChangeListener(FileChangeListener) - Method in class com.gentlyweb.utils.FileWatcher.Worker
- addFileChangeListener(FileChangeListener, int) - Method in class com.gentlyweb.utils.FileWatcher
- addFileChangeListener(FileChangeListener, int) - Method in class com.gentlyweb.utils.FileWatcher.Worker
- addGroupBy(Getter) - Method in class com.gentlyweb.utils.Grouper
- addGroupBy(String) - Method in class com.gentlyweb.utils.Grouper
- addListEntriesToMap(List, Map, boolean) - Static method in class com.gentlyweb.utils.CollectionsUtils
-
Add all the entries in the List as keys in the specified map.
- addMapEntriesToList(Map, List) - Static method in class com.gentlyweb.utils.CollectionsUtils
-
Get all the entries in the Map object out and place into the List passed in, just add at the bottom.
- areAllCharsInRange(String, char, char) - Static method in class com.gentlyweb.utils.StringUtils
-
Indicate whether the String value has ALL of it's characters in the specified range of characters.
- ASC - Static variable in class com.gentlyweb.utils.GeneralComparator
-
Use to indicate that a field should be sorted in ascending order.
C
- cacheSlice(Date, Date) - Method in class com.gentlyweb.utils.ObjectCache
- cacheSliceFrom(Date) - Method in class com.gentlyweb.utils.ObjectCache
- cacheSliceTo(Date) - Method in class com.gentlyweb.utils.ObjectCache
- canRead() - Method in class com.gentlyweb.utils.FileDetails
- canWrite() - Method in class com.gentlyweb.utils.FileDetails
- capacity() - Method in class com.gentlyweb.utils.ObjectCache
- capacity() - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Return the current capacity of the cache, it should basically be (max size - current size).
- capacity(Object) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Return the current capacity of the cache, it should basically be (max size - current size).
- ChainException - Exception in com.gentlyweb.utils
- ChainException(String) - Constructor for exception com.gentlyweb.utils.ChainException
- ChainException(String, Throwable) - Constructor for exception com.gentlyweb.utils.ChainException
- clazz - Static variable in class com.gentlyweb.utils.GeneralComparator.XMLConstants
- clearAll() - Method in class com.gentlyweb.utils.FileWatcher
-
Stop ALL files from being watched.
- collect(Collection, Collection) - Method in class com.gentlyweb.utils.GeneralCollector
- collect(Collection, List) - Method in class com.gentlyweb.utils.GeneralCollector
- collect(List, Collection) - Method in class com.gentlyweb.utils.GeneralCollector
- collect(List, List) - Method in class com.gentlyweb.utils.GeneralCollector
- collect(Map, String, Collection) - Method in class com.gentlyweb.utils.GeneralCollector
- collect(Map, String, List) - Method in class com.gentlyweb.utils.GeneralCollector
- collect(Map, String, Map) - Method in class com.gentlyweb.utils.GeneralCollector
- CollectionsUtils - Class in com.gentlyweb.utils
- CollectionsUtils() - Constructor for class com.gentlyweb.utils.CollectionsUtils
- com.gentlyweb.utils - package com.gentlyweb.utils
- compare(Object, Object) - Method in class com.gentlyweb.utils.GeneralComparator
-
Implement the {@link Comparator.compare(Object,Object)} method.
- CONTAINS - Static variable in class com.gentlyweb.utils.GeneralFilter
- containsKey(Object) - Method in class com.gentlyweb.utils.ObjectCache
- convertListToMap(List, Map, String, String) - Static method in class com.gentlyweb.utils.CollectionsUtils
-
Given a List of objects, convert the values it contains to the passed in Map.
- convertStringToCharEntities(String) - Static method in class com.gentlyweb.utils.StringUtils
-
Convert a string to a set of character entities.
- convertToRows(List, int) - Static method in class com.gentlyweb.utils.CollectionsUtils
- copyFile(File, File, int) - Static method in class com.gentlyweb.utils.IOUtils
-
Copy a file from one location to a new location.
- count - Variable in class com.gentlyweb.utils.GeneralComparator
D
- DEFAULT_FORMAT_SPEC - Static variable in class com.gentlyweb.utils.TimeDuration
- DESC - Static variable in class com.gentlyweb.utils.GeneralComparator
-
Use to indicate that a field should be sorted in descending order.
- DynamicGetter - Class in com.gentlyweb.utils
-
This class is used to perform access into a Java object using a String value with a specific notation.
- DynamicGetter(String, Object) - Constructor for class com.gentlyweb.utils.DynamicGetter
-
Get the getter associated with the named reference.
E
- ENDS_WITH - Static variable in class com.gentlyweb.utils.GeneralFilter
- equals(Object) - Method in class com.gentlyweb.utils.GeneralComparator
-
Implement the {@link Comparator.equals(Object)} method.
- equals(Object) - Method in class com.gentlyweb.utils.ItemPair
-
This method just uses the algorithm defined in the Map.Entry interface.
- EQUALS - Static variable in class com.gentlyweb.utils.GeneralFilter
- exists() - Method in class com.gentlyweb.utils.FileDetails
- EXISTS - Static variable in class com.gentlyweb.utils.FileChangeEvent
F
- field - Static variable in class com.gentlyweb.utils.GeneralComparator.XMLConstants
- FILE_TYPE_CHANGE - Static variable in class com.gentlyweb.utils.FileChangeEvent
- fileChanged(FileChangeEvent, int) - Method in interface com.gentlyweb.utils.FileChangeListener
- FileChangeEvent - Class in com.gentlyweb.utils
- FileChangeEvent(File, FileDetails, FileDetails, int) - Constructor for class com.gentlyweb.utils.FileChangeEvent
- FileChangeListener - Interface in com.gentlyweb.utils
- FileDetails - Class in com.gentlyweb.utils
- FileDetails(File) - Constructor for class com.gentlyweb.utils.FileDetails
- FileWatcher - Class in com.gentlyweb.utils
- FileWatcher() - Constructor for class com.gentlyweb.utils.FileWatcher
- FileWatcher.Worker - Class in com.gentlyweb.utils
- filter(Object[]) - Method in class com.gentlyweb.utils.GeneralFilter
-
Filter an array of objects and return a new array of the filtered objects.
- filter(Collection) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Collection and filter given our fields, return the filtered objects in a new Collection.
- filter(Collection, Collection) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Collection and filter given our fields.
- filter(List) - Method in class com.gentlyweb.utils.GeneralFilter
-
Cycle over the List and filter given our fields.
- filter(List, List) - Method in class com.gentlyweb.utils.GeneralFilter
-
Cycle over the List and filter given our fields.
- filter(List, Set) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the List and filter the objects it contains.
- filter(Map, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Map and filter either the Keys or Values in the Map given our fields.
- filter(Map, int, Map) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Map and filter either the Keys or Values in the Map given our fields.
- filter(Set) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Set and filter given our fields, return the filtered objects in a new Set.
- filter(Set, List) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Set and filter the objects it contains.
- filter(Set, Set) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Set and filter the objects it contains.
- filter(SortedMap, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the SortedMap and filter either the Keys or Values in the SortedMap given our fields.
- filter(SortedSet) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the SortedSet and filter the objects it contains.
- filterAndRemove(Collection) - Method in class com.gentlyweb.utils.GeneralFilter
-
Cycle over the Collection and filter given our fields directly from the passed in Set.
- filterAndRemove(List) - Method in class com.gentlyweb.utils.GeneralFilter
-
Cycle over the List and filter given our fields directly from the passed in List.
- filterAndRemove(Map, int) - Method in class com.gentlyweb.utils.GeneralFilter
-
Iterate over the Map and filter given our fields directly from the passed in Map.
- filterAndRemove(Set) - Method in class com.gentlyweb.utils.GeneralFilter
-
Cycle over the Set and filter given our fields directly from the passed in Set.
- FilterException - Exception in com.gentlyweb.utils
- FilterException(String) - Constructor for exception com.gentlyweb.utils.FilterException
- FilterException(String, Exception) - Constructor for exception com.gentlyweb.utils.FilterException
- fireFileChange(File, FileChangeEvent, int) - Method in class com.gentlyweb.utils.FileWatcher
- fireFileChange(File, FileChangeEvent, int) - Method in class com.gentlyweb.utils.FileWatcher.Worker
- firstKey() - Method in class com.gentlyweb.utils.ObjectCache
- firstValue() - Method in class com.gentlyweb.utils.ObjectCache
- flush() - Method in class com.gentlyweb.utils.ObjectCache
-
Clear our data structures.
- flush() - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Let the object cache be flushed.
- flush(Object) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Let the object cache be flushed.
- format() - Method in class com.gentlyweb.utils.TimeDuration
- format(String) - Method in class com.gentlyweb.utils.TimeDuration
G
- GeneralCollector - Class in com.gentlyweb.utils
- GeneralCollector(Class) - Constructor for class com.gentlyweb.utils.GeneralCollector
- GeneralCollector(Class, String) - Constructor for class com.gentlyweb.utils.GeneralCollector
- GeneralComparator - Class in com.gentlyweb.utils
-
A general purpose comparator designed to compare any pair of heterogeneous objects.
- GeneralComparator(Class) - Constructor for class com.gentlyweb.utils.GeneralComparator
-
Create a new GeneralComparator using the data held in the JDOM element.
- GeneralComparator.XMLConstants - Class in com.gentlyweb.utils
- GeneralFilter - Class in com.gentlyweb.utils
- GeneralFilter(Class) - Constructor for class com.gentlyweb.utils.GeneralFilter
- GeneralUtils - Class in com.gentlyweb.utils
-
A Class to hold some general purpose Utilities that don't have a home anywhere else (at the moment).
- GeneralUtils() - Constructor for class com.gentlyweb.utils.GeneralUtils
- GENTLYWEB_EMAIL - Static variable in class com.gentlyweb.utils.GeneralUtils
- get(Object) - Method in class com.gentlyweb.utils.ObjectCache
- get(Object) - Method in class com.gentlyweb.utils.Timings
- getAccessor() - Method in class com.gentlyweb.utils.Getter
- getAccessorChain(String, Class) - Static method in class com.gentlyweb.utils.Accessor
-
Get the Java field associated with the named field.
- getAsDate() - Method in class com.gentlyweb.utils.TimeDuration
- getBaseClass() - Method in class com.gentlyweb.utils.DynamicGetter
- getBaseClass() - Method in class com.gentlyweb.utils.Getter
- getCompareClass() - Method in class com.gentlyweb.utils.GeneralComparator
- getContentType() - Method in class com.gentlyweb.utils.GZIPFileDataSource
-
Get the content type for this data source.
- getContentType() - Method in class com.gentlyweb.utils.HTMLDataSource
- getContentType() - Method in class com.gentlyweb.utils.URLDataSource
- getCount() - Method in class com.gentlyweb.utils.GeneralComparator
- getDays() - Method in class com.gentlyweb.utils.TimeDuration
- getDaysAsMillis(int) - Static method in class com.gentlyweb.utils.NumberUtils
-
Given an int value treat it as a number of days and return the number of milliseconds for that number of days.
- getDuration() - Method in class com.gentlyweb.utils.Timing
- getDuration(Object) - Method in class com.gentlyweb.utils.Timings
- getDurationAsLong(Object) - Method in class com.gentlyweb.utils.Timings
- getEventTypes() - Method in class com.gentlyweb.utils.FileChangeEvent
- getException() - Method in exception com.gentlyweb.utils.ChainException
- getExceptionTraceAsString(Exception) - Static method in class com.gentlyweb.utils.GeneralUtils
-
Get an exception (and if it's an instance of
ChainException
) the chain of exceptions (if present) as a String. - getField() - Method in class com.gentlyweb.utils.GeneralCollector
-
Get a field given a field name.
- getFields() - Method in class com.gentlyweb.utils.GeneralComparator
-
Return a List of GeneralComparator.SortField objects, this is used in the
GeneralComparator.equals(Object)
method. - getFile() - Method in class com.gentlyweb.utils.FileChangeEvent
- getFile() - Method in class com.gentlyweb.utils.FileDetails
- getFile(File) - Static method in class com.gentlyweb.utils.IOUtils
-
Get the contents of a File as a String.
- getFileAsArray(File) - Static method in class com.gentlyweb.utils.IOUtils
-
Get the contents of a File as a byte array.
- getFileLengthAsFormattedKilobytes(long) - Static method in class com.gentlyweb.utils.IOUtils
-
Get a file length as kilobytes in the form x.y.
- getFiles() - Method in class com.gentlyweb.utils.FileWatcher
- getFilterClass() - Method in class com.gentlyweb.utils.GeneralFilter
-
Get the class that we are filtering.
- getFormattedFileLength(long) - Static method in class com.gentlyweb.utils.IOUtils
-
Get a file length as formatted string.
- getHours() - Method in class com.gentlyweb.utils.TimeDuration
- getIndex() - Method in class com.gentlyweb.utils.Accessor
- getInputStream() - Method in class com.gentlyweb.utils.GZIPFileDataSource
-
Get an appropriate InputStream for the data source.
- getInputStream() - Method in class com.gentlyweb.utils.HTMLDataSource
- getInputStream() - Method in class com.gentlyweb.utils.URLDataSource
- getInstance(long) - Static method in class com.gentlyweb.utils.TimeDuration
- getInstance(TimeDuration) - Static method in class com.gentlyweb.utils.TimeDuration
- getInstance(Timing) - Static method in class com.gentlyweb.utils.TimeDuration
- getInstance(Date) - Static method in class com.gentlyweb.utils.TimeDuration
- getKey() - Method in class com.gentlyweb.utils.ItemPair
- getLastAccessTime(Object) - Method in class com.gentlyweb.utils.ObjectCache
- getLength() - Method in class com.gentlyweb.utils.FileDetails
- getMapEntriesAsOrderedList(Map, List) - Static method in class com.gentlyweb.utils.CollectionsUtils
-
Given a Map return the entries in the Map in the passed in List in order.
- getMaxSize() - Method in class com.gentlyweb.utils.ObjectCache
- getMethods(Class, String, int, List) - Static method in class com.gentlyweb.utils.GeneralUtils
- getMillis() - Method in class com.gentlyweb.utils.TimeDuration
- getMillisAsFormattedSeconds(long) - Static method in class com.gentlyweb.utils.NumberUtils
-
Convert a number of milliseconds into seconds, we format to 2 decimal places, i.e.
- getMins() - Method in class com.gentlyweb.utils.TimeDuration
- getName() - Method in class com.gentlyweb.utils.GZIPFileDataSource
-
Get the name of the data source.
- getName() - Method in class com.gentlyweb.utils.HTMLDataSource
- getName() - Method in class com.gentlyweb.utils.URLDataSource
- getNewFileDetails() - Method in class com.gentlyweb.utils.FileChangeEvent
- getNoParmJavaGetMethod(String, Class) - Static method in class com.gentlyweb.utils.Getter
- getNullAcceptPolicy() - Method in class com.gentlyweb.utils.GeneralFilter
-
Get the null accept policy, this governs what happens when a null is observed from the result of an accessor chain call,
true
indicates that the value is accepted,false
indicates that it is rejected. - getOldFileDetails() - Method in class com.gentlyweb.utils.FileChangeEvent
- getOutputStream() - Method in class com.gentlyweb.utils.GZIPFileDataSource
-
Get an appropriate OutputStream for the data source.
- getOutputStream() - Method in class com.gentlyweb.utils.HTMLDataSource
- getOutputStream() - Method in class com.gentlyweb.utils.URLDataSource
- getPolicy() - Method in class com.gentlyweb.utils.ObjectCache
- getSecs() - Method in class com.gentlyweb.utils.TimeDuration
- Getter - Class in com.gentlyweb.utils
-
This class is used to perform access into a Java object using a String value with a specific notation.
- Getter(String, Class) - Constructor for class com.gentlyweb.utils.Getter
-
Get the getter associated with the named reference.
- getTextAsFormattedLines(String, int) - Static method in class com.gentlyweb.utils.StringUtils
-
Given a chunk of text format it so that you return a new String with the line length equal to that passed in.
- getType() - Method in class com.gentlyweb.utils.DynamicGetter
-
Get the class of the type of object we would return from the
DynamicGetter.getValue(Object)
method. - getType() - Method in class com.gentlyweb.utils.Getter
-
Get the class of the type of object we would return from the
Getter.getValue(Object)
method. - getValue() - Method in class com.gentlyweb.utils.ItemPair
- getValue(Object) - Method in class com.gentlyweb.utils.DynamicGetter
- getValue(Object) - Method in class com.gentlyweb.utils.Getter
- getValueForIndex(Object, String) - Static method in class com.gentlyweb.utils.Accessor
- getValueFromAccessorChain(Object, List) - Static method in class com.gentlyweb.utils.Accessor
- getYNFromUser(String) - Static method in class com.gentlyweb.utils.IOUtils
-
Ask a question of the User on stdout and wait for a response.
- GREATER_THAN - Static variable in class com.gentlyweb.utils.GeneralFilter
- group(List) - Method in class com.gentlyweb.utils.Grouper
- Grouper - Class in com.gentlyweb.utils
- Grouper(Class) - Constructor for class com.gentlyweb.utils.Grouper
- groupSortByGroupSize(List, String) - Method in class com.gentlyweb.utils.Grouper
- gzipFile(File, File) - Static method in class com.gentlyweb.utils.IOUtils
-
GZIP a file, this will move the file from the given name to the new location.
- GZIPFileDataSource - Class in com.gentlyweb.utils
-
A Class for handling a gzipped file as a DataSource.
- GZIPFileDataSource(File, String) - Constructor for class com.gentlyweb.utils.GZIPFileDataSource
-
Create a new data source for the specified file.
H
- hasCharInRange(String, char, char) - Static method in class com.gentlyweb.utils.StringUtils
-
Indicate whether the String value has at least one character in the range specified.
- hasEvent(int) - Method in class com.gentlyweb.utils.FileChangeEvent
- hashCode() - Method in class com.gentlyweb.utils.ItemPair
-
This method just uses the algorithm defined in the Map.Entry interface.
- hasNext() - Method in class com.gentlyweb.utils.ObjectCacheIterator
- hasValue(String) - Static method in class com.gentlyweb.utils.StringUtils
-
Determine whether the specified string contains a value, where having a value means:
(string != null) && (!string.equals (""))
- HIDDEN - Static variable in class com.gentlyweb.utils.FileChangeEvent
- HTMLDataSource - Class in com.gentlyweb.utils
- HTMLDataSource(String) - Constructor for class com.gentlyweb.utils.HTMLDataSource
I
- id - Static variable in class com.gentlyweb.utils.GeneralComparator.XMLConstants
- init(long) - Method in class com.gentlyweb.utils.TimeDuration
- init(TimeDuration) - Method in class com.gentlyweb.utils.TimeDuration
- inRange(Object, Object) - Method in interface com.gentlyweb.utils.StringRangeComparator
- IOUtils - Class in com.gentlyweb.utils
- IOUtils() - Constructor for class com.gentlyweb.utils.IOUtils
- isDirectory() - Method in class com.gentlyweb.utils.FileDetails
- isEmpty() - Method in class com.gentlyweb.utils.ObjectCache
- isEmpty() - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Return whether the cache is empty or not.
- isEmpty(Object) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Return whether the cache is empty or not.
- isFile() - Method in class com.gentlyweb.utils.FileDetails
- isHidden() - Method in class com.gentlyweb.utils.FileDetails
- isIndexCorrectForType(Class) - Method in class com.gentlyweb.utils.Accessor
- ItemPair - Class in com.gentlyweb.utils
- ItemPair(Object, Object) - Constructor for class com.gentlyweb.utils.ItemPair
- iterator() - Method in class com.gentlyweb.utils.ObjectCache
- iterator() - Method in class com.gentlyweb.utils.Timings
K
- KEY_ORDERED - Static variable in class com.gentlyweb.utils.Timings
- keys() - Method in class com.gentlyweb.utils.ObjectCache
-
Return a List of all the keys in the cache.
- keys(GeneralFilter) - Method in class com.gentlyweb.utils.ObjectCache
-
Return a List of all the keys in the cache that match the conditions imposed by the
GeneralFilter
passed in. - KEYS - Static variable in class com.gentlyweb.utils.GeneralCollector
- KEYS - Static variable in class com.gentlyweb.utils.GeneralFilter
- keysForFilteredValues(GeneralFilter) - Method in class com.gentlyweb.utils.ObjectCache
-
Return a List of keys in the cache that match the conditions imposed by the
GeneralFilter
AND are applied to the values NOT the keys. - keysToList(List) - Method in class com.gentlyweb.utils.ObjectCache
L
- lastModified() - Method in class com.gentlyweb.utils.FileDetails
- lastValue() - Method in class com.gentlyweb.utils.ObjectCache
- LENGTH_CHANGED - Static variable in class com.gentlyweb.utils.FileChangeEvent
- LESS_THAN - Static variable in class com.gentlyweb.utils.GeneralFilter
M
- merge(ObjectCache) - Method in class com.gentlyweb.utils.ObjectCache
- merge(ObjectCache) - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Merge the current cache with another.
- merge(Object, ObjectCache) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Merge the current cache with another.
- MODIFIED - Static variable in class com.gentlyweb.utils.FileChangeEvent
- MultipleObjectCacheManager - Interface in com.gentlyweb.utils
-
This interface should be implemented by classes that contain X number of publicly available ObjectCaches, it provides methods that allow applications to control the caches without understanding what is inside the cache.
N
- next() - Method in class com.gentlyweb.utils.ObjectCacheIterator
- NOT_CONTAINS - Static variable in class com.gentlyweb.utils.GeneralFilter
- NOT_EQUALS - Static variable in class com.gentlyweb.utils.GeneralFilter
- NOT_EXISTS - Static variable in class com.gentlyweb.utils.FileChangeEvent
- NOT_HIDDEN - Static variable in class com.gentlyweb.utils.FileChangeEvent
- NOT_READABLE - Static variable in class com.gentlyweb.utils.FileChangeEvent
- NOT_WRITEABLE - Static variable in class com.gentlyweb.utils.FileChangeEvent
- NumberUtils - Class in com.gentlyweb.utils
- NumberUtils() - Constructor for class com.gentlyweb.utils.NumberUtils
O
- ObjectCache - Class in com.gentlyweb.utils
-
The ObjectCache is it's own manager which means that classes that extend this one can do so quickly and without having to implement the
ObjectCacheManager
interface they only have to provide their own functionality whilst client classes can rely on the interface. - ObjectCache(int) - Constructor for class com.gentlyweb.utils.ObjectCache
- ObjectCacheIterator - Class in com.gentlyweb.utils
- ObjectCacheIterator(ObjectCache) - Constructor for class com.gentlyweb.utils.ObjectCacheIterator
- ObjectCacheManager - Interface in com.gentlyweb.utils
-
This interface should be implemented by classes that contain a publicly available ObjectCache, it provides methods that allow applications to control the cache without understanding what is inside the cache.
- OLDEST - Static variable in class com.gentlyweb.utils.ObjectCache
P
- printInnerExceptionChain(PrintWriter) - Method in exception com.gentlyweb.utils.ChainException
- put(Object, Object) - Method in class com.gentlyweb.utils.ObjectCache
- putAll(Object, Map) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Add all the entries in the Map to cache.
- putAll(Map) - Method in class com.gentlyweb.utils.ObjectCache
- putAll(Map) - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Add all the entries in the Map to cache.
R
- RANDOM - Static variable in class com.gentlyweb.utils.ObjectCache
- RANDOM - Static variable in class com.gentlyweb.utils.Timings
- READABLE - Static variable in class com.gentlyweb.utils.FileChangeEvent
- remove() - Method in class com.gentlyweb.utils.ObjectCacheIterator
- remove(Object) - Method in class com.gentlyweb.utils.ObjectCache
- remove(Object) - Method in class com.gentlyweb.utils.Timings
- removeAll(File) - Method in class com.gentlyweb.utils.FileWatcher
-
Remove all the files that we are watching that have the specified directory as given by the passed in File.
- removeAll(FileFilter) - Method in class com.gentlyweb.utils.FileWatcher
-
Remove all the files from our list of watched files according to the FileFilter passed in.
- removeChar(String, char) - Static method in class com.gentlyweb.utils.StringUtils
-
Given a particular String, remove any instances of the given character from it and return a new String.
- removeField(String) - Method in class com.gentlyweb.utils.GeneralComparator
-
Remove a field that we sort on.
- removeFile(File) - Method in class com.gentlyweb.utils.FileWatcher
-
Stop a file being watched.
- removeFileChangeListener(FileChangeListener) - Method in class com.gentlyweb.utils.FileWatcher
- removeFileChangeListener(FileChangeListener) - Method in class com.gentlyweb.utils.FileWatcher.Worker
- replaceAllStrings(String, Map) - Static method in class com.gentlyweb.utils.StringUtils
-
Given a Map of String/String (or Object/Object, they will be converted to Strings before replacement) replace all instances of each one in the specified text.
- replaceAllStrings(String, Map, boolean) - Static method in class com.gentlyweb.utils.StringUtils
-
Given a Map of String/String (or Object/Object, they will be converted to Strings before replacement) replace all instances of each one in the specified text.
- replaceString(String, String, String) - Static method in class com.gentlyweb.utils.StringUtils
-
Replace all instances of the specified string in the text given.
- replaceString(String, String, String, boolean) - Static method in class com.gentlyweb.utils.StringUtils
-
Replace all instances of the specified string in the text given.
- resize() - Method in class com.gentlyweb.utils.ObjectCache
- resize(int) - Method in class com.gentlyweb.utils.ObjectCache
- resize(int) - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Resize the cache to a particular size, if the size is actually bigger than the current size then this operation should not touch the cached objects, if the size is less then the cache should be reduced in size using the current policy until the size is reached.
- resize(Object, int) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Resize the cache to a particular size, if the size is actually bigger than the current size then this operation should not touch the cached objects, if the size is less then the cache should be reduced in size using the current policy until the size is reached.
- restart() - Method in class com.gentlyweb.utils.Timing
- restart(Date) - Method in class com.gentlyweb.utils.Timing
- rollUpToMillis() - Method in class com.gentlyweb.utils.TimeDuration
- root - Static variable in class com.gentlyweb.utils.GeneralComparator.XMLConstants
- run() - Method in class com.gentlyweb.utils.FileWatcher.Worker
S
- setAccessor(Field) - Method in class com.gentlyweb.utils.Accessor
- setAccessor(Method) - Method in class com.gentlyweb.utils.Accessor
- setCheckRepeatTime(long) - Method in class com.gentlyweb.utils.FileWatcher
- setCheckRepeatTime(long) - Method in class com.gentlyweb.utils.FileWatcher.Worker
- setDays(int) - Method in class com.gentlyweb.utils.TimeDuration
- setField(String) - Method in class com.gentlyweb.utils.GeneralCollector
-
Set the field that we collect if you readd the same field then the type is just updated.
- setFieldValue(String, boolean) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set a new value for the specified boolean filter field.
- setFieldValue(String, double) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set new maximum and minimum values for the specified number filter field.
- setFieldValue(String, double, double) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set new maximum and minimum values for the specified number filter field.
- setFieldValue(String, Object) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set the value for the specified field.
- setFieldValue(String, String) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set the value for the specified String filter field.
- setFieldValue(String, Date) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set a new date value for the specified date filter field.
- setFieldValue(String, Date, Date) - Method in class com.gentlyweb.utils.GeneralFilter
-
Set new date range values for the specified date filter field.
- setFile(File) - Method in class com.gentlyweb.utils.GZIPFileDataSource
-
Set the File to use for the data source.
- setFileDetails(File, FileDetails) - Method in class com.gentlyweb.utils.FileWatcher
- setHours(int) - Method in class com.gentlyweb.utils.TimeDuration
- setIndex(String) - Method in class com.gentlyweb.utils.Accessor
- setMaxSize(int) - Method in class com.gentlyweb.utils.ObjectCache
- setMaxSize(int) - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Set the maximum size of the cache.
- setMaxSize(Object, int) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Set the maximum size of the cache.
- setMillis(int) - Method in class com.gentlyweb.utils.TimeDuration
- setMins(int) - Method in class com.gentlyweb.utils.TimeDuration
- setNullAcceptPolicy(boolean) - Method in class com.gentlyweb.utils.GeneralFilter
-
Specify what the policy should be when a null value is returned from an accesor chain, in other words, when the comparison is made should a
null
value returntrue
orfalse
. - setPolicy(int) - Method in class com.gentlyweb.utils.ObjectCache
- setPolicy(int) - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Set the policy for managing the cache, should be one of:
ObjectCache.OLDEST
,ObjectCache.YOUNGEST
,ObjectCache.RANDOM
. - setPolicy(Object, int) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Set the policy for managing the cache, should be one of:
ObjectCache.OLDEST
,ObjectCache.YOUNGEST
,ObjectCache.RANDOM
. - setSecs(int) - Method in class com.gentlyweb.utils.TimeDuration
- setValue(Object) - Method in class com.gentlyweb.utils.ItemPair
- setZipExtension(String) - Method in class com.gentlyweb.utils.GZIPFileDataSource
-
Set the zip extension to use.
- size() - Method in class com.gentlyweb.utils.ObjectCache
- slice(Date, Date) - Method in class com.gentlyweb.utils.ObjectCache
- sliceFrom(Date) - Method in class com.gentlyweb.utils.ObjectCache
- sliceTo(Date) - Method in class com.gentlyweb.utils.ObjectCache
- start() - Method in class com.gentlyweb.utils.FileWatcher
- start() - Method in class com.gentlyweb.utils.FileWatcher.Worker
- start(Object) - Method in class com.gentlyweb.utils.Timings
- start(Object, long) - Method in class com.gentlyweb.utils.Timings
- start(Object, Date) - Method in class com.gentlyweb.utils.Timings
- STARTS_WITH - Static variable in class com.gentlyweb.utils.GeneralFilter
- stop() - Method in class com.gentlyweb.utils.FileWatcher
- stop() - Method in class com.gentlyweb.utils.FileWatcher.Worker
- stop() - Method in class com.gentlyweb.utils.Timing
- stop(long) - Method in class com.gentlyweb.utils.Timing
- stop(Object) - Method in class com.gentlyweb.utils.Timings
- stop(Object, long) - Method in class com.gentlyweb.utils.Timings
- stop(Object, Date) - Method in class com.gentlyweb.utils.Timings
- stop(Date) - Method in class com.gentlyweb.utils.Timing
- streamTo(InputStream, OutputStream, int) - Static method in class com.gentlyweb.utils.IOUtils
-
This method acts as a "join" between an input and an output stream, all it does is take the input and keep reading it in and sending it directly to the output using the specified buffer size.
- StringRangeComparator - Interface in com.gentlyweb.utils
- StringUtils - Class in com.gentlyweb.utils
- StringUtils() - Constructor for class com.gentlyweb.utils.StringUtils
- subtract(TimeDuration) - Method in class com.gentlyweb.utils.TimeDuration
T
- TIME_ORDERED - Static variable in class com.gentlyweb.utils.Timings
- TimeDuration - Class in com.gentlyweb.utils
- TimeDuration(int, int, int, int) - Constructor for class com.gentlyweb.utils.TimeDuration
- TimeDuration(int, int, int, int, int) - Constructor for class com.gentlyweb.utils.TimeDuration
- TimeDuration(long) - Constructor for class com.gentlyweb.utils.TimeDuration
- TimeDuration(TimeDuration) - Constructor for class com.gentlyweb.utils.TimeDuration
- TimeDuration(Date) - Constructor for class com.gentlyweb.utils.TimeDuration
- TimeDuration(Date, Date) - Constructor for class com.gentlyweb.utils.TimeDuration
- Timing - Class in com.gentlyweb.utils
- Timing() - Constructor for class com.gentlyweb.utils.Timing
- Timing(long) - Constructor for class com.gentlyweb.utils.Timing
- Timing(Date) - Constructor for class com.gentlyweb.utils.Timing
- Timings - Class in com.gentlyweb.utils
- Timings(int) - Constructor for class com.gentlyweb.utils.Timings
- tokenizeString(String, String) - Static method in class com.gentlyweb.utils.StringUtils
-
A method to chop up a String on another multi-character String and then return the results in a List.
- toMap(Object, Map) - Method in interface com.gentlyweb.utils.MultipleObjectCacheManager
-
Get all the entries in the cache as a Map of key to value.
- toMap(Map) - Method in class com.gentlyweb.utils.ObjectCache
- toMap(Map) - Method in interface com.gentlyweb.utils.ObjectCacheManager
-
Get all the entries in the cache as a Map of key to value.
- toPrecision(double, int) - Static method in class com.gentlyweb.utils.NumberUtils
-
Get the passed in double to the required precision.
- toString() - Method in class com.gentlyweb.utils.GeneralFilter
-
Output the filter fields as a String suitable for debugging.
- toString() - Method in class com.gentlyweb.utils.Getter
- type - Static variable in class com.gentlyweb.utils.GeneralComparator.XMLConstants
U
- URLDataSource - Class in com.gentlyweb.utils
- URLDataSource(URL) - Constructor for class com.gentlyweb.utils.URLDataSource
V
- validateIPv4Address(String) - Static method in class com.gentlyweb.utils.GeneralUtils
-
Validate an IPv4 address (string) passed in, it must conform to the following rules: Must have 4 parts. Parts must be separated by . The first octet must be in the range 0-223. The second and third octets must be in the range 0-255 4th octet can be either a number in the range 1-254 (0 is the name of the network, 255 is the broadcast address). All parts must be numbers...
- values() - Method in class com.gentlyweb.utils.ObjectCache
-
Return a List of all the values in the cache.
- values(GeneralFilter) - Method in class com.gentlyweb.utils.ObjectCache
-
Return a List of all the values in the cache that match the conditions imposed by the
GeneralFilter
passed in. - VALUES - Static variable in class com.gentlyweb.utils.GeneralCollector
- VALUES - Static variable in class com.gentlyweb.utils.GeneralFilter
- valuesToList(List) - Method in class com.gentlyweb.utils.ObjectCache
W
- Worker(FileWatcher) - Constructor for class com.gentlyweb.utils.FileWatcher.Worker
- WRITEABLE - Static variable in class com.gentlyweb.utils.FileChangeEvent
- writeBytesToFile(File, byte[]) - Static method in class com.gentlyweb.utils.IOUtils
-
Write the given bytes to a file, note that this method will just overwrite any existing file.
- writeBytesToFile(File, byte[], int) - Static method in class com.gentlyweb.utils.IOUtils
-
Write the given bytes to a file, note that this method will just overwrite any existing file.
- writeStringToFile(File, String, boolean) - Static method in class com.gentlyweb.utils.IOUtils
-
Write the given String to the File.
X
- XMLConstants() - Constructor for class com.gentlyweb.utils.GeneralComparator.XMLConstants
Y
- YOUNGEST - Static variable in class com.gentlyweb.utils.ObjectCache
All Classes All Packages