- CALENDAR_YEAR - Static variable in class com.twelvemonkeys.lang.DateUtil
-
One calendar year: 365.2425 days (31556952000 milliseconds).
- camelToLisp(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the input string
from camel-style (Java in-fix) naming convention
to Lisp-style naming convention (hyphen delimitted, all lower case).
- capitalize(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Makes the Nth letter of a String uppercase.
- capitalize(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Makes the first letter of a String uppercase.
- categories() - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Returns an Iterator
containing all categories in this registry.
- clear() - Method in class com.twelvemonkeys.util.NullMap
-
- clear() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Removes all mappings from this map.
- clone(Cloneable) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
- clone() - Method in class com.twelvemonkeys.util.LinkedMap
-
- clone() - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
- CollectionUtil - Class in com.twelvemonkeys.util
-
A utility class with some useful collection-related functions.
- com.twelvemonkeys.lang - package com.twelvemonkeys.lang
-
- com.twelvemonkeys.util - package com.twelvemonkeys.util
-
- com.twelvemonkeys.util.convert - package com.twelvemonkeys.util.convert
-
- com.twelvemonkeys.util.regex - package com.twelvemonkeys.util.regex
-
- com.twelvemonkeys.util.service - package com.twelvemonkeys.util.service
-
- compatibleCategories(Object) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Returns an Iterator
containing all categories in this registry
the given pProvider
may be registered with.
- configure(Object, Map<String, ?>) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Configures the bean according to the given mapping.
- configure(Object, Map<String, ?>, boolean) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Configures the bean according to the given mapping.
- containingCategories(Object) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Returns an Iterator
containing all categories in this registry
the given pProvider
is currently registered with.
- contains(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains another string.
- contains(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains a specific character.
- containsIgnoreCase(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains another string, ignoring case.
- containsIgnoreCase(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains a specific character, ignoring case.
- containsKey(Object) - Method in class com.twelvemonkeys.util.IgnoreCaseMap
-
Tests if the specified object is a key in this map.
- containsKey(Object) - Method in class com.twelvemonkeys.util.NullMap
-
- containsKey(Object) - Method in class com.twelvemonkeys.util.TimeoutMap
-
Returns true
if this map contains a mapping for the specified
pKey.
- containsValue(Object) - Method in class com.twelvemonkeys.util.LinkedMap
-
- containsValue(Object) - Method in class com.twelvemonkeys.util.NullMap
-
- containsValue(Object) - Method in class com.twelvemonkeys.util.WeakWeakMap
-
- ConversionException - Exception in com.twelvemonkeys.util.convert
-
This exception may be thrown by PropertyConverters, when an attempted
conversion fails.
- ConversionException(String) - Constructor for exception com.twelvemonkeys.util.convert.ConversionException
-
Creates a ConversionException
with the given error message.
- ConversionException(Throwable) - Constructor for exception com.twelvemonkeys.util.convert.ConversionException
-
Creates a ConversionException
with the given cause.
- ConversionException(String, Throwable) - Constructor for exception com.twelvemonkeys.util.convert.ConversionException
-
Creates a ConversionException
with the given message and cause.
- Converter - Class in com.twelvemonkeys.util.convert
-
The converter (singleton).
- Converter() - Constructor for class com.twelvemonkeys.util.convert.Converter
-
Creates a Converter.
- converters - Variable in class com.twelvemonkeys.util.convert.Converter
-
The converters Map
- createInstance(Class<T>, Object) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Creates an object from the given class' single argument constructor.
- createInstance(Class<T>, Object...) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Creates an object from the given class' constructor that matches
the given paramaters.
- currentTimeDay() - Static method in class com.twelvemonkeys.lang.DateUtil
-
Gets the current time, rounded down to the closest day.
- currentTimeHour() - Static method in class com.twelvemonkeys.lang.DateUtil
-
Gets the current time, rounded down to the closest hour.
- currentTimeMinute() - Static method in class com.twelvemonkeys.lang.DateUtil
-
Gets the current time, rounded down to the closest minute.
- currentTimeSecond() - Static method in class com.twelvemonkeys.lang.DateUtil
-
Gets the current time, rounded down to the closest second.
- cut(String, int, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Cuts a string between two words, before a sepcified length, if the
string is longer than the maxium lenght.
- get() - Static method in class com.twelvemonkeys.lang.Platform
-
Returns the current Platform
.
- get(Object) - Method in class com.twelvemonkeys.util.BeanMap
-
- get(Object) - Method in class com.twelvemonkeys.util.IgnoreCaseMap
-
Returns the value to which the specified key is mapped in this
map.
- get(Object) - Method in class com.twelvemonkeys.util.LinkedMap
-
- get(Object) - Method in class com.twelvemonkeys.util.NullMap
-
- get(Object) - Method in class com.twelvemonkeys.util.TimeoutMap
-
Returns the value to which this map maps the specified pKey.
- get(Object) - Method in class com.twelvemonkeys.util.WeakWeakMap
-
- getArchitecture() - Method in class com.twelvemonkeys.lang.Platform
-
- getExpiryTime() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Gets the maximum time any value will be kept in the map, before it expires.
- getFirstElement(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Gets the first element of a String
containing string elements delimited by a given delimiter.
- getFormat(Class, Object...) - Method in class com.twelvemonkeys.util.convert.NumberConverter
-
- getFormatString() - Method in class com.twelvemonkeys.util.TimeFormat
-
Gets the format string.
- getInstance() - Static method in class com.twelvemonkeys.util.convert.Converter
-
Gets the Converter instance.
- getInstance() - Static method in class com.twelvemonkeys.util.TimeFormat
-
DUMMY IMPLEMENTATION!!
Not locale specific.
- getLastElement(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Gets the last element of a String
containing string elements
delimited by a given delimiter.
- getMaxSize() - Method in class com.twelvemonkeys.util.LRUHashMap
-
Returns the maximum number of mappings in this map.
- getMaxSize() - Method in class com.twelvemonkeys.util.LRUMap
-
Returns the maximum number of mappings in this map.
- getMinutes() - Method in class com.twelvemonkeys.util.Time
-
Gets the minutes part of the time.
- getName() - Method in enum com.twelvemonkeys.lang.Platform.OperatingSystem
-
- getOS() - Method in class com.twelvemonkeys.lang.Platform
-
- getPropertyValue(Object, String) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Gets a property value from the given object, using reflection.
- getSeconds() - Method in class com.twelvemonkeys.util.Time
-
Gets the seconds part of the time.
- getStringMask() - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
Gets the string mask that was used when building the parser atomaton.
- getTime() - Method in class com.twelvemonkeys.util.Time
-
Gets the full time in seconds.
- getTimeInMillis() - Method in class com.twelvemonkeys.util.Time
-
Gets the full time in milliseconds, for use in creating dates or
similar.
- getTrimFactor() - Method in class com.twelvemonkeys.util.LRUHashMap
-
Returns the current trim factor.
- getTrimFactor() - Method in class com.twelvemonkeys.util.LRUMap
-
Returns the current trim factor.
- getVersion() - Method in class com.twelvemonkeys.lang.Platform
-
- id() - Method in enum com.twelvemonkeys.lang.Platform.OperatingSystem
-
- identityToString(Object) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns a string on the same format as Object.toString()
.
- IgnoreCaseMap<V> - Class in com.twelvemonkeys.util
-
A Map
decorator that makes the mappings in the backing map
case insensitive
(this is implemented by converting all keys to uppercase),
if the keys used are Strings
.
- IgnoreCaseMap() - Constructor for class com.twelvemonkeys.util.IgnoreCaseMap
-
Constructs a new empty Map
.
- IgnoreCaseMap(Map<String, ? extends V>) - Constructor for class com.twelvemonkeys.util.IgnoreCaseMap
-
Constructs a new Map
with the same key-value mappings as the
given Map
.
- IgnoreCaseMap(Map, Map<String, ? extends V>) - Constructor for class com.twelvemonkeys.util.IgnoreCaseMap
-
Constructs a new Map
with the same key-value mappings as the
given Map
.
- indexOfIgnoreCase(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the first occurrence of the
specified substring.
- indexOfIgnoreCase(String, String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the first occurrence of the
specified substring, starting at the specified index.
- indexOfIgnoreCase(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the first occurrence of the
specified character.
- indexOfIgnoreCase(String, int, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the first occurrence of the
specified character, starting at the specified index.
- init() - Method in class com.twelvemonkeys.util.LinkedMap
-
- invert(Map<K, V>) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates an inverted mapping of the key/value pairs in the given map.
- invert(Map<K, V>, Map<V, K>, DuplicateHandler<K>) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates an inverted mapping of the key/value pairs in the given map.
- invokeStaticMethod(Class<?>, String, Object) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Gets an object from any given static method, with the given parameter.
- invokeStaticMethod(Class<?>, String, Object...) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Gets an object from any given static method, with the given parameter.
- isClassAvailable(String) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Tests if a named class is generally available.
- isClassAvailable(String, Class) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Tests if a named class is available from another class.
- isEmpty(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a String is null, or contains nothing but white-space.
- isEmpty(String[]) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests a string array, to see if all items are null or an empty string.
- isEmpty() - Method in class com.twelvemonkeys.util.NullMap
-
- isEmpty() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Returns true
if this map contains no key-value mappings.
- isFieldAvailable(String, String) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
- isFieldAvailable(String, String, Class) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
- isFreePassCharacter(char) - Static method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
Tests if a certain character is the designated "free-pass" character ('?').
- isFreeRangeCharacter(char) - Static method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
Tests if a certain character is the designated "free-range" character ('*').
- isInAlphabet(char) - Static method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
Tests if a certain character is a valid character in the alphabet that is applying for this automaton.
- isMethodAvailable(String, String) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
- isMethodAvailable(String, String, Class[]) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
- isMethodAvailable(String, String, Class[], Class) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
- isNumber(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests a string, to see if it is an number (element of Z).
- isPrimitiveWrapper(Class) - Static method in class com.twelvemonkeys.lang.ReflectUtil
-
Returns true
if the given type is a primitive wrapper.
- isTrue(boolean, String) - Static method in class com.twelvemonkeys.lang.Validate
-
- isTrue(boolean, T, String) - Static method in class com.twelvemonkeys.lang.Validate
-
- isWildcardCharacter(char) - Static method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
Tests if a certain character is a wildcard character ('*' or '?').
- iterator(Enumeration<T>) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
- iterator(E[]) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates a thin
Iterator
wrapper around an array.
- iterator(E[], int, int) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates a thin
Iterator
wrapper around an array.
- iterator - Variable in class com.twelvemonkeys.util.FilterIterator
-
- iterator() - Method in class com.twelvemonkeys.util.LinkedSet
-
- lastIndexOfIgnoreCase(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the rightmost occurrence of the
specified substring.
- lastIndexOfIgnoreCase(String, String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the rightmost occurrence of the
specified substring.
- lastIndexOfIgnoreCase(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the last occurrence of the
specified character.
- lastIndexOfIgnoreCase(String, int, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the index within this string of the last occurrence of the
specified character, searching backward starting at the specified index.
- LinkedMap<K,V> - Class in com.twelvemonkeys.util
-
Generic map and linked list implementation of the Map
interface,
with predictable iteration order.
- LinkedMap() - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a LinkedMap
backed by a HashMap
, with default
(insertion) order.
- LinkedMap(boolean) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a LinkedMap
backed by a HashMap
, with the
given order.
- LinkedMap(Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a LinkedMap
backed by a HashMap
, with key/value
pairs copied from pContents
and default (insertion) order.
- LinkedMap(Map<? extends K, ? extends V>, boolean) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a LinkedMap
backed by a HashMap
, with key/value
pairs copied from pContents
and the given order.
- LinkedMap(Map<K, Map.Entry<K, V>>, Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a LinkedMap
backed by the given map, with key/value
pairs copied from pContents
and default (insertion) order.
- LinkedMap(Map<K, Map.Entry<K, V>>, Map<? extends K, ? extends V>, boolean) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a LinkedMap
backed by the given map, with key/value
pairs copied from pContents
and the given order.
- LinkedMap.LinkedEntry<K,V> - Class in com.twelvemonkeys.util
-
Linked list implementation of Map.Entry
.
- LinkedSet<E> - Class in com.twelvemonkeys.util
-
Generic map and linked list implementation of the Set
interface,
with predictable iteration order.
- LinkedSet() - Constructor for class com.twelvemonkeys.util.LinkedSet
-
- LinkedSet(Collection<E>) - Constructor for class com.twelvemonkeys.util.LinkedSet
-
- lispToCamel(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the input string
from Lisp-style naming convention (hyphen delimitted, all lower case)
to camel-style (Java in-fix) naming convention.
- lispToCamel(String, boolean) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the input string
from Lisp-style naming convention (hyphen delimitted, all lower case)
to camel-style (Java in-fix) naming convention.
- loadProperties(Class, String) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Utility method for loading a named properties-file for a class.
- loadProperties(Class) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Utility method for loading a properties-file for a given class.
- loadProperties(String) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Utility method for loading a named properties-file.
- LRUHashMap<K,V> - Class in com.twelvemonkeys.util
-
Map implementation with size limit, that keeps its entries in LRU
(least recently used) order, also known as access-order.
- LRUHashMap() - Constructor for class com.twelvemonkeys.util.LRUHashMap
-
Creates an LRUHashMap with default max size (1000 entries).
- LRUHashMap(int) - Constructor for class com.twelvemonkeys.util.LRUHashMap
-
Creates an LRUHashMap with the given max size.
- LRUHashMap(Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.LRUHashMap
-
Creates an LRUHashMap with initial mappings from the given map,
and default max size (1000 entries).
- LRUHashMap(Map<? extends K, ? extends V>, int) - Constructor for class com.twelvemonkeys.util.LRUHashMap
-
Creates an LRUHashMap with initial mappings from the given map,
and the given max size.
- LRUMap<K,V> - Class in com.twelvemonkeys.util
-
Map implementation with size limit, that keeps its entries in LRU
(least recently used) order, also known as access-order.
- LRUMap() - Constructor for class com.twelvemonkeys.util.LRUMap
-
Creates an LRUMap with default max size (1000 entries).
- LRUMap(int) - Constructor for class com.twelvemonkeys.util.LRUMap
-
Creates an LRUMap with the given max size.
- LRUMap(Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.LRUMap
-
Creates an LRUMap with initial mappings from the given map,
and default max size (1000 entries).
- LRUMap(Map<? extends K, ? extends V>, int) - Constructor for class com.twelvemonkeys.util.LRUMap
-
Creates an LRUMap with initial mappings from the given map,
and the given max size.
- LRUMap(Map<K, Map.Entry<K, V>>, Map<? extends K, ? extends V>, int) - Constructor for class com.twelvemonkeys.util.LRUMap
-
Creates an LRUMap with initial mappings from the given map,
and the given max size.
- ltrim(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Trims the argument string for whitespace on the left side only.
- recordAccess(Map<K, V>) - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
-
If the entry is part of an access ordered list, moves the entry to
the end of the list.
- recordRemoval(Map<K, V>) - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
-
Removes this entry from the linked list.
- ReflectUtil - Class in com.twelvemonkeys.lang
-
Util class for various reflection-based operations.
- RegExTokenIterator - Class in com.twelvemonkeys.util.regex
-
StringTokenizer
replacement, that uses regular expressions to split
strings into tokens.
- RegExTokenIterator(String) - Constructor for class com.twelvemonkeys.util.regex.RegExTokenIterator
-
Creates a RegExTokenIterator
.
- RegExTokenIterator(String, String) - Constructor for class com.twelvemonkeys.util.regex.RegExTokenIterator
-
Creates a RegExTokenIterator
.
- register(Object) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Registers the given provider for all categories it matches.
- register(T, Class<? super T>) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Registers the given provider for the given category.
- RegisterableService - Interface in com.twelvemonkeys.util.service
-
An optional interface that may be implemented by service provider objects.
- registerApplicationClasspathSPIs() - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Registers all provider implementations for this ServiceRegistry
found in the application classpath.
- registerConverter(Class<?>, PropertyConverter) - Static method in class com.twelvemonkeys.util.convert.Converter
-
Registers a converter for a given type.
- remove() - Method in class com.twelvemonkeys.util.AbstractTokenIterator
-
Not supported.
- remove(Object) - Method in class com.twelvemonkeys.util.BeanMap
-
- remove() - Method in class com.twelvemonkeys.util.FilterIterator
-
Removes from the underlying collection the last element returned by the
iterator (optional operation).
- remove(Object) - Method in class com.twelvemonkeys.util.IgnoreCaseMap
-
Removes the key (and its corresponding value) from this map.
- remove(Object) - Method in class com.twelvemonkeys.util.LinkedMap
-
- remove(Object) - Method in class com.twelvemonkeys.util.NullMap
-
- remove(Object) - Method in class com.twelvemonkeys.util.TimeoutMap
-
Removes the mapping for this pKey from this map if present (optional
operation).
- remove(Object) - Method in class com.twelvemonkeys.util.WeakWeakMap
-
- removeEldestEntry(Map.Entry<K, V>) - Method in class com.twelvemonkeys.util.LinkedMap
-
Returns true
if this map should remove its eldest entry.
- removeEldestEntry(Map.Entry<K, V>) - Method in class com.twelvemonkeys.util.LRUHashMap
-
always returns false
, and instead invokes removeLRU()
if size >= maxSize
.
- removeEldestEntry(Map.Entry) - Method in class com.twelvemonkeys.util.LRUMap
-
always returns false
, and instead invokes removeLRU()
if size >= maxSize
.
- removeEntry(Map.Entry<K, V>) - Method in class com.twelvemonkeys.util.LRUMap
-
- removeExpiredEntries() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Removes any expired mappings.
- removeLRU() - Method in class com.twelvemonkeys.util.LRUHashMap
-
Removes the least recently used mapping(s) from this map.
- removeLRU() - Method in class com.twelvemonkeys.util.LRUMap
-
Removes the least recently used mapping(s) from this map.
- replace(String, String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Replaces a substring of a string with another string.
- replaceAll(String, String, String) - Method in class com.twelvemonkeys.lang.StringUtil
-
Replaces each substring of this string that matches the given
regular expression with the given pReplacement.
- replaceFirst(String, String, String) - Method in class com.twelvemonkeys.lang.StringUtil
-
Replaces the first substring of the given string that matches the given
regular expression with the given pReplacement.
- replaceIgnoreCase(String, String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Replaces a substring of a string with another string, ignoring case.
- reset() - Method in class com.twelvemonkeys.util.regex.RegExTokenIterator
-
Resets this iterator.
- reset() - Method in class com.twelvemonkeys.util.StringTokenIterator
-
Resets this iterator.
- reset() - Method in interface com.twelvemonkeys.util.TokenIterator
-
Resets this iterator.
- resolve(T, T) - Method in interface com.twelvemonkeys.util.DuplicateHandler
-
Resolves duplicates according to a certain strategy.
- reverse(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
- REVERSE - Static variable in class com.twelvemonkeys.util.StringTokenIterator
-
- reverseOrder(Comparator<T>) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
- roundToDay(long) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Rounds the given time down to the closest day, using the default timezone.
- roundToDay(long, TimeZone) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Rounds the given time down to the closest day, using the given timezone.
- roundToHour(long) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Rounds the given time down to the closest hour, using the default timezone.
- roundToHour(long, TimeZone) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Rounds the given time down to the closest hour, using the given timezone.
- roundToMinute(long) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Rounds the given time down to the closest minute.
- roundToSecond(long) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Rounds the given time down to the closest second.
- rtrim(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Trims the argument string for whitespace on the right side only.
- SECOND - Static variable in class com.twelvemonkeys.lang.DateUtil
-
One second: 1000 milliseconds.
- SECONDS_IN_MINUTE - Static variable in class com.twelvemonkeys.util.Time
-
- ServiceConfigurationError - Error in com.twelvemonkeys.util.service
-
Error thrown by the ServiceRegistry
in case of a configuration
error.
- ServiceRegistry - Class in com.twelvemonkeys.util.service
-
A registry for service provider objects.
- ServiceRegistry(Iterator<? extends Class<?>>) - Constructor for class com.twelvemonkeys.util.service.ServiceRegistry
-
Creates a ServiceRegistry
instance with a set of categories
taken from the pCategories
argument.
- SERVICES - Static variable in class com.twelvemonkeys.util.service.ServiceRegistry
-
"META-INF/services/"
- setExpiryTime(long) - Method in class com.twelvemonkeys.util.TimeoutMap
-
Sets the maximum time any value will be kept in the map, before it expires.
- setMaxSize(int) - Method in class com.twelvemonkeys.util.LRUHashMap
-
Sets the maximum number of elements in this map.
- setMaxSize(int) - Method in class com.twelvemonkeys.util.LRUMap
-
Sets the maximum number of elements in this map.
- setMinutes(int) - Method in class com.twelvemonkeys.util.Time
-
Sets the minutes part of the time.
- setPropertyValue(Object, String, Object) - Static method in class com.twelvemonkeys.lang.BeanUtil
-
Sets the property value to an object using reflection.
- setSeconds(int) - Method in class com.twelvemonkeys.util.Time
-
Sets the seconds part of the time.
- setTime(int) - Method in class com.twelvemonkeys.util.Time
-
Sets the full time in seconds
- setTrimFactor(float) - Method in class com.twelvemonkeys.util.LRUHashMap
-
Sets the trim factor.
- setTrimFactor(float) - Method in class com.twelvemonkeys.util.LRUMap
-
Sets the trim factor.
- sInstance - Static variable in class com.twelvemonkeys.util.convert.Converter
-
Our singleton instance
- size() - Method in class com.twelvemonkeys.util.BeanMap
-
- size() - Method in class com.twelvemonkeys.util.LinkedSet
-
- size() - Method in class com.twelvemonkeys.util.NullMap
-
- size() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Returns the number of key-value mappings in this map.
- split(String, String, int) - Method in class com.twelvemonkeys.lang.StringUtil
-
Splits this string around matches of the given regular expression.
- split(String, String) - Method in class com.twelvemonkeys.lang.StringUtil
-
Splits this string around matches of the given regular expression.
- STD_PROPERTIES - Static variable in class com.twelvemonkeys.lang.SystemUtil
-
".properties"
- StringTokenIterator - Class in com.twelvemonkeys.util
-
StringTokenIterator, a drop-in replacement for StringTokenizer
.
- StringTokenIterator(String) - Constructor for class com.twelvemonkeys.util.StringTokenIterator
-
Creates a StringTokenIterator
- StringTokenIterator(String, String) - Constructor for class com.twelvemonkeys.util.StringTokenIterator
-
Creates a StringTokenIterator
- StringTokenIterator(String, String, int) - Constructor for class com.twelvemonkeys.util.StringTokenIterator
-
Creates a StringTokenIterator
- StringTokenIterator(String, String, boolean) - Constructor for class com.twelvemonkeys.util.StringTokenIterator
-
Creates a StringTokenIterator
- StringTokenIterator(String, String, int, boolean, boolean) - Constructor for class com.twelvemonkeys.util.StringTokenIterator
-
Creates a StringTokenIterator
- StringUtil - Class in com.twelvemonkeys.lang
-
A utility class with some useful string manipulation methods.
- subArray(Object, int) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates an array containing a subset of the original array.
- subArray(T[], int) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates an array containing a subset of the original array.
- subArray(Object, int, int) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates an array containing a subset of the original array.
- subArray(T[], int, int) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Creates an array containing a subset of the original array.
- substring(String, String, String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Gets the first substring between the given string boundaries.
- SystemUtil - Class in com.twelvemonkeys.lang
-
A utility class with some useful system-related functions.
- Time - Class in com.twelvemonkeys.util
-
Utility class for storing times in a simple way.
- Time() - Constructor for class com.twelvemonkeys.util.Time
-
Creates a new time with 0 seconds, 0 minutes.
- Time(int) - Constructor for class com.twelvemonkeys.util.Time
-
Creates a new time with the given time (in seconds).
- TimeConverter - Class in com.twelvemonkeys.util.convert
-
Converts strings to times and back.
- TimeConverter() - Constructor for class com.twelvemonkeys.util.convert.TimeConverter
-
- TimeFormat - Class in com.twelvemonkeys.util
-
Format for converting and parsing time.
- TimeFormat(String) - Constructor for class com.twelvemonkeys.util.TimeFormat
-
Creates a new TimeFormat with the given formatString,
- TimeoutMap<K,V> - Class in com.twelvemonkeys.util
-
A Map
implementation that removes (exipres) its elements after
a given period.
- TimeoutMap() - Constructor for class com.twelvemonkeys.util.TimeoutMap
-
Creates a TimeoutMap
with the default expiry time of 1 minute.
- TimeoutMap(Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.TimeoutMap
-
Creates a TimeoutMap
containing the same elements as the given map
with the default expiry time of 1 minute.
- TimeoutMap(long) - Constructor for class com.twelvemonkeys.util.TimeoutMap
-
Creates a TimeoutMap
with the given expiry time (milliseconds).
- TimeoutMap(Map<K, Map.Entry<K, V>>, Map<? extends K, ? extends V>, long) - Constructor for class com.twelvemonkeys.util.TimeoutMap
-
Creates a TimeoutMap
with the given expiry time (milliseconds).
- toColor(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Parses a string to a Color.
- toColorString(Color) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Creates a HTML/CSS String representation of the given color.
- toCSVString(Object[]) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a string array to a string of comma-separated values.
- toCSVString(Object[], String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a string array to a string separated by the given delimiter.
- toDate(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the string to a date, using the default date format.
- toDate(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the string to a date, using the given format.
- toDate(String, DateFormat) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the string to a date, using the given format.
- toDoubleArray(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of doubles.
- toDoubleArray(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of doubles.
- toIntArray(String, String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of ints.
- toIntArray(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of ints.
- toIntArray(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of ints.
- TokenIterator - Interface in com.twelvemonkeys.util
-
TokenIterator, Iterator-based replacement for StringTokenizer.
- toLongArray(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of longs.
- toLongArray(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of longs.
- toLowerCase(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a string to lowercase.
- toObject(String, Class) - Method in class com.twelvemonkeys.util.convert.Converter
-
Converts the string to an object of the given type.
- toObject(String, Class, String) - Method in class com.twelvemonkeys.util.convert.Converter
-
Converts the string to an object of the given type, parsing after the
given format.
- toObject(String, Class, String) - Method in class com.twelvemonkeys.util.convert.DateConverter
-
Converts the string to a date, using the given format for parsing.
- toObject(String, Class, String) - Method in class com.twelvemonkeys.util.convert.DefaultConverter
-
Converts the string to an object of the given type.
- toObject(String, Class, String) - Method in class com.twelvemonkeys.util.convert.NumberConverter
-
Converts the string to a number, using the given format for parsing.
- toObject(String, Class, String) - Method in interface com.twelvemonkeys.util.convert.PropertyConverter
-
Converts the string to an object, using the given format for parsing.
- toObject(String, Class, String) - Method in class com.twelvemonkeys.util.convert.TimeConverter
-
Converts the string to a time, using the given format for parsing.
- toString() - Method in enum com.twelvemonkeys.lang.Platform.Architecture
-
- toString() - Method in enum com.twelvemonkeys.lang.Platform.OperatingSystem
-
- toString(Object) - Method in class com.twelvemonkeys.util.convert.Converter
-
Converts the object to a string, using object.toString()
- toString(Object, String) - Method in class com.twelvemonkeys.util.convert.Converter
-
Converts the object to a string, using object.toString()
- toString(Object, String) - Method in class com.twelvemonkeys.util.convert.DateConverter
-
Converts the object to a string, using the given format
- toString(Object, String) - Method in class com.twelvemonkeys.util.convert.DefaultConverter
-
Converts the object to a string, using pObject.toString()
.
- toString(Object, String) - Method in class com.twelvemonkeys.util.convert.NumberConverter
-
Converts the object to a string, using the given format
- toString(Object, String) - Method in interface com.twelvemonkeys.util.convert.PropertyConverter
-
Converts the object to a string, using the given format
- toString(Object, String) - Method in class com.twelvemonkeys.util.convert.TimeConverter
-
Converts the object to a string, using the given format
- toString() - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
Method toString
- toString() - Method in class com.twelvemonkeys.util.Time
-
Creates a string representation of the time object.
- toString(String) - Method in class com.twelvemonkeys.util.Time
-
Deprecated.
- toStringArray(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a delimiter separated String to an array of Strings.
- toStringArray(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of Strings.
- toTimestamp(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts the string to a jdbc Timestamp, using the standard Timestamp
escape format.
- toUpper(Object) - Static method in class com.twelvemonkeys.util.IgnoreCaseMap
-
Converts the parameter to uppercase, if it's a String.
- toUpperCase(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a string to uppercase.
- TypeMismathException - Exception in com.twelvemonkeys.util.convert
-
This exception may be thrown by PropertyConverter
s, if a conversion
is attempted on the wrong type (class).
- TypeMismathException(Class) - Constructor for exception com.twelvemonkeys.util.convert.TypeMismathException
-
Creates a TypeMismathException
.