Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractTokenIterator - Class in com.twelvemonkeys.util
-
Abstract base class for
TokenIterator
s to extend. - AbstractTokenIterator() - Constructor for class com.twelvemonkeys.util.AbstractTokenIterator
- accept(E) - Method in interface com.twelvemonkeys.util.FilterIterator.Filter
-
Tests whether or not the element fulfills certain criteria, and hence should be accepted.
- accessOrder - Variable in class com.twelvemonkeys.util.LinkedMap
- add(E) - Method in class com.twelvemonkeys.util.LinkedSet
- addAll(Collection<? extends E>) - Method in class com.twelvemonkeys.util.LinkedSet
- addAll(Collection<E>, Iterator<? extends E>) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Adds all elements of the iterator to the collection.
- ALPHABET - Static variable in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Field ALPHABET
- arch() - Static method in class com.twelvemonkeys.lang.Platform
-
Shorthand for
Platform.get().getArchitecture()
.
B
- BeanMap - Class in com.twelvemonkeys.util
-
A
Map
adapter for a Java Bean. - BeanMap(Object) - Constructor for class com.twelvemonkeys.util.BeanMap
- BeanUtil - Class in com.twelvemonkeys.lang
-
A utility class with some useful bean-related functions.
C
- 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) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Makes the first letter of a String uppercase.
- capitalize(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Makes the Nth 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.LinkedMap
- clear() - Method in class com.twelvemonkeys.util.NullMap
- clear() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Removes all mappings from this map.
- clone() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Returns a shallow copy of this
AbstractMap
instance: the keys and values themselves are not cloned. - clone() - Method in class com.twelvemonkeys.util.LinkedMap
- clone() - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
- clone(Cloneable) - Static method in class com.twelvemonkeys.lang.SystemUtil
- 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 givenpProvider
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 givenpProvider
is currently registered with. - contains(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains a specific character.
- contains(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains another string.
- containsIgnoreCase(String, int) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains a specific character, ignoring case.
- containsIgnoreCase(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Tests if a string contains another string, ignoring case.
- containsKey(Object) - Method in class com.twelvemonkeys.util.LinkedMap
- 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.TimeoutMap
-
Returns
true
if this map maps one or more keys to the specified pValue. - 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(String, Throwable) - Constructor for exception com.twelvemonkeys.util.convert.ConversionException
-
Creates a
ConversionException
with the given message and cause. - ConversionException(Throwable) - Constructor for exception com.twelvemonkeys.util.convert.ConversionException
-
Creates a
ConversionException
with the given 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.
D
- DateConverter - Class in com.twelvemonkeys.util.convert
-
Converts strings to dates and back.
- DateConverter() - Constructor for class com.twelvemonkeys.util.convert.DateConverter
-
Creates a
DateConverter
- DateUtil - Class in com.twelvemonkeys.lang
-
A utility class with useful date manipulation methods and constants.
- DAY - Static variable in class com.twelvemonkeys.lang.DateUtil
-
One day: 24 hours (86 400 000 milliseconds).
- decode(byte[], int, int, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Constructs a new
String
by decoding the specified sub array of bytes using the specified charset. - deepToString(Object) - Static method in class com.twelvemonkeys.lang.StringUtil
- deepToString(Object, boolean, int) - Static method in class com.twelvemonkeys.lang.StringUtil
- DefaultConverter - Class in com.twelvemonkeys.util.convert
-
Converts strings to objects and back.
- DefaultConverter() - Constructor for class com.twelvemonkeys.util.convert.DefaultConverter
-
Creates a
DefaultConverter
. - DELIMITER_STRING - Static variable in class com.twelvemonkeys.lang.StringUtil
-
The default delimiter string, used by the
toXXXArray()
methods. - delta(long) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Returns the time between the given start time and now (as defined by
System.currentTimeMillis()
). - delta(Date) - Static method in class com.twelvemonkeys.lang.DateUtil
-
Returns the time between the given start time and now (as defined by
System.currentTimeMillis()
). - deregister(Object) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
De-registers the given provider from all categories it's currently registered in.
- deregister(Object, Class<?>) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Deregisters the given provider from the given category.
- DuplicateHandler<T> - Interface in com.twelvemonkeys.util
-
DuplicateHandler
- DUPLICATES_AS_ARRAY - Static variable in interface com.twelvemonkeys.util.DuplicateHandler
-
Converts duplicats to an
Object
array. - DUPLICATES_AS_CSV - Static variable in interface com.twelvemonkeys.util.DuplicateHandler
-
Converts duplicates to a comma-separated
String
.
E
- entries - Variable in class com.twelvemonkeys.util.TimeoutMap
- entrySet() - Method in class com.twelvemonkeys.util.LinkedMap
- entrySet() - Method in class com.twelvemonkeys.util.BeanMap
- entrySet() - Method in class com.twelvemonkeys.util.NullMap
- entrySet() - Method in class com.twelvemonkeys.util.TimeoutMap
- entrySet() - Method in class com.twelvemonkeys.util.WeakWeakMap
- equals(Object) - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
- equals(Object) - Method in class com.twelvemonkeys.util.NullMap
-
Tests the given object for equality (wether it is also an empty
Map
). - equals(Object) - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Method equals
- ExpiringMap<K,
V> - Interface in com.twelvemonkeys.util -
Call-back inteface for
Map
implementations that have mappings that may expire. - expiryTime - Variable in class com.twelvemonkeys.util.TimeoutMap
-
Expiry time
F
- filter - Variable in class com.twelvemonkeys.util.FilterIterator
- FilterIterator<E> - Class in com.twelvemonkeys.util
-
Wraps (decorates) an
Iterator
with extra functionality, to allow element filtering. - FilterIterator(Iterator<E>, FilterIterator.Filter<E>) - Constructor for class com.twelvemonkeys.util.FilterIterator
-
Creates a
FilterIterator
that wraps theIterator
. - FilterIterator.Filter<E> - Interface in com.twelvemonkeys.util
-
Used to tests whether or not an element fulfills certain criteria, and hence should be accepted by the FilterIterator instance.
- finalize() - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.
- format(Time) - Method in class com.twelvemonkeys.util.TimeFormat
-
Formats the the given time, using this format.
- format(Object, StringBuffer, FieldPosition) - Method in class com.twelvemonkeys.util.TimeFormat
-
DUMMY IMPLEMENTATION!!
- formatString - Variable in class com.twelvemonkeys.util.TimeFormat
- formatter - Variable in class com.twelvemonkeys.util.TimeFormat
-
The formatter array.
- FORWARD - Static variable in class com.twelvemonkeys.util.StringTokenIterator
- FREE_PASS_CHARACTER - Static variable in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Field FREE_PASS_CHARACTER
- FREE_RANGE_CHARACTER - Static variable in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Field FREE_RANGE_CHARACTER
G
- 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.
- getKey() - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
- 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 class 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.
- getValue() - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
- getVersion() - Method in class com.twelvemonkeys.lang.Platform
H
- hashCode() - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
- hashCode() - Method in class com.twelvemonkeys.util.NullMap
-
Returns the
hashCode
of the empty map,0
. - hashCode() - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Method hashCode
- hasMoreElements() - Method in class com.twelvemonkeys.util.AbstractTokenIterator
-
This implementation simply returns
hasNext()
. - hasMoreTokens() - Method in class com.twelvemonkeys.util.AbstractTokenIterator
- hasMoreTokens() - Method in interface com.twelvemonkeys.util.TokenIterator
- hasNext() - Method in class com.twelvemonkeys.util.FilterIterator
-
Returns
true
if the iteration has more elements. - hasNext() - Method in class com.twelvemonkeys.util.regex.RegExTokenIterator
- hasNext() - Method in class com.twelvemonkeys.util.StringTokenIterator
-
Returns
true
if the iteration has more elements. - HOUR - Static variable in class com.twelvemonkeys.lang.DateUtil
-
One hour: 60 minutes (3 600 000 milliseconds).
I
- I386 - Enum constant in enum class com.twelvemonkeys.lang.Platform.Architecture
- I686 - Enum constant in enum class com.twelvemonkeys.lang.Platform.Architecture
- id() - Method in enum class 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 areStrings
. - 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 givenMap
. - 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 givenMap
. - 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.
- 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.
- init() - Method in class com.twelvemonkeys.util.TimeoutMap
-
Default implementation, does nothing.
- 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() - Method in class com.twelvemonkeys.util.LinkedMap
- 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. - 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.
- 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 - Variable in class com.twelvemonkeys.util.FilterIterator
- iterator() - Method in class com.twelvemonkeys.util.LinkedSet
- 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(Enumeration<T>) - Static method in class com.twelvemonkeys.util.CollectionUtil
K
- keySet() - Method in class com.twelvemonkeys.util.LinkedMap
- keySet() - Method in class com.twelvemonkeys.util.NullMap
- keySet() - Method in class com.twelvemonkeys.util.TimeoutMap
L
- 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.
- 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.
- 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 aHashMap
, with default (insertion) order. - LinkedMap(boolean) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a
LinkedMap
backed by aHashMap
, with the given order. - LinkedMap(Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a
LinkedMap
backed by aHashMap
, with key/value pairs copied frompContents
and default (insertion) order. - LinkedMap(Map<? extends K, ? extends V>, boolean) - Constructor for class com.twelvemonkeys.util.LinkedMap
-
Creates a
LinkedMap
backed by aHashMap
, with key/value pairs copied frompContents
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 frompContents
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 frompContents
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
- Linux - Enum constant in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
- 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) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Utility method for loading a properties-file for a given class.
- loadProperties(Class, String) - Static method in class com.twelvemonkeys.lang.SystemUtil
-
Utility method for loading a named properties-file for a 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.
M
- MacOS - Enum constant in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
- main(String[]) - Static method in class com.twelvemonkeys.lang.SystemUtil
- main(String[]) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Testing only.
- main(String[]) - Static method in class com.twelvemonkeys.util.service.ServiceRegistry
- matches(String, String) - Method in class com.twelvemonkeys.lang.StringUtil
-
Tells whether or not the given string string matches the given regular expression.
- mergeArrays(Object, int, int, Object, int, int) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Merges two arrays into a new array.
- mergeArrays(Object, Object) - Static method in class com.twelvemonkeys.util.CollectionUtil
-
Merges two arrays into a new array.
- MINUTE - Static variable in class com.twelvemonkeys.lang.DateUtil
-
One minute: 60 seconds (60 000 milliseconds).
- MissingTypeException - Exception in com.twelvemonkeys.util.convert
-
This exception may be thrown by
PropertyConverter
s, if a conversion is attempted without type (class). - MissingTypeException() - Constructor for exception com.twelvemonkeys.util.convert.MissingTypeException
-
Creates a
MissingTypeException
with no error message. - MissingTypeException(String) - Constructor for exception com.twelvemonkeys.util.convert.MissingTypeException
-
Creates a
MissingTypeException
with the given error message. - modCount - Variable in class com.twelvemonkeys.util.TimeoutMap
N
- newEntryIterator() - Method in class com.twelvemonkeys.util.IgnoreCaseMap
- newEntryIterator() - Method in class com.twelvemonkeys.util.LinkedMap
- newEntryIterator() - Method in class com.twelvemonkeys.util.TimeoutMap
- newKeyIterator() - Method in class com.twelvemonkeys.util.IgnoreCaseMap
- newKeyIterator() - Method in class com.twelvemonkeys.util.LinkedMap
- newKeyIterator() - Method in class com.twelvemonkeys.util.TimeoutMap
- newValueIterator() - Method in class com.twelvemonkeys.util.IgnoreCaseMap
- newValueIterator() - Method in class com.twelvemonkeys.util.LinkedMap
- newValueIterator() - Method in class com.twelvemonkeys.util.TimeoutMap
- next() - Method in class com.twelvemonkeys.util.FilterIterator
-
Returns the next element in the iteration.
- next() - Method in class com.twelvemonkeys.util.regex.RegExTokenIterator
- next() - Method in class com.twelvemonkeys.util.StringTokenIterator
-
Returns the next element in the iteration.
- nextElement() - Method in class com.twelvemonkeys.util.AbstractTokenIterator
-
This implementation simply returns
next()
. - nextToken() - Method in class com.twelvemonkeys.util.AbstractTokenIterator
-
Returns the next element in the iteration as a
String
. - nextToken() - Method in interface com.twelvemonkeys.util.TokenIterator
-
Returns the next element in the iteration as a
String
. - NoAvailableConverterException - Exception in com.twelvemonkeys.util.convert
-
This exception may be thrown by
PropertyConverter
s, if a conversion is attempted for a type (class), that has no registeredPropertyConverter
. - NoAvailableConverterException() - Constructor for exception com.twelvemonkeys.util.convert.NoAvailableConverterException
-
Creates a
NoAvailableConverterException
with no error message. - NoAvailableConverterException(String) - Constructor for exception com.twelvemonkeys.util.convert.NoAvailableConverterException
-
Creates a
NoAvailableConverterException
with the given error message. - noNullElements(Collection<T>) - Static method in class com.twelvemonkeys.lang.Validate
- noNullElements(Collection<T>, String) - Static method in class com.twelvemonkeys.lang.Validate
- noNullElements(T[]) - Static method in class com.twelvemonkeys.lang.Validate
- noNullElements(T[], String) - Static method in class com.twelvemonkeys.lang.Validate
- noNullKeys(Map<K, V>) - Static method in class com.twelvemonkeys.lang.Validate
- noNullKeys(Map<K, V>, String) - Static method in class com.twelvemonkeys.lang.Validate
- noNullValues(Map<K, V>) - Static method in class com.twelvemonkeys.lang.Validate
- noNullValues(Map<K, V>, String) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(Collection<T>) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(Collection<T>, String) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(Map<K, V>) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(Map<K, V>, String) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(T) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(T[]) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(T[], String) - Static method in class com.twelvemonkeys.lang.Validate
- notEmpty(T, String) - Static method in class com.twelvemonkeys.lang.Validate
- notNull(T) - Static method in class com.twelvemonkeys.lang.Validate
- notNull(T, String) - Static method in class com.twelvemonkeys.lang.Validate
- NullMap<K,
V> - Class in com.twelvemonkeys.util -
An (immutable) empty
Map
, that supports allMap
operations without throwing exceptions (in contrast toCollections.EMPTY_MAP
that will throw exceptions onput
/remove
). - NullMap() - Constructor for class com.twelvemonkeys.util.NullMap
- NumberConverter - Class in com.twelvemonkeys.util.convert
-
Converts strings to numbers and back.
- NumberConverter() - Constructor for class com.twelvemonkeys.util.convert.NumberConverter
O
- onDeregistration(ServiceRegistry, Class) - Method in interface com.twelvemonkeys.util.service.RegisterableService
-
Called right after this service provider object is removed from the given category of the given
ServiceRegistry
. - onRegistration(ServiceRegistry, Class) - Method in interface com.twelvemonkeys.util.service.RegisterableService
-
Called right after this service provider object is added to the given category of the given
ServiceRegistry
. - os() - Static method in class com.twelvemonkeys.lang.Platform
-
Shorthand for
Platform.get().getOS()
.
P
- pad(String, int, String, boolean) - Static method in class com.twelvemonkeys.lang.StringUtil
-
String length check with simple concatenation of selected pad-string.
- parse(String) - Method in class com.twelvemonkeys.util.TimeFormat
-
Parses a Time, according to this format.
- parseObject(String, ParsePosition) - Method in class com.twelvemonkeys.util.TimeFormat
-
DUMMY IMPLEMENTATION!!
- parseString(String) - Method in class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Parses a string according to the rules stated above.
- parseTime(String) - Static method in class com.twelvemonkeys.util.Time
-
Deprecated.
- Platform - Class in com.twelvemonkeys.lang
-
Platform
- Platform.Architecture - Enum Class in com.twelvemonkeys.lang
-
Enumeration of common System
Architecture
s. - Platform.OperatingSystem - Enum Class in com.twelvemonkeys.lang
-
Enumeration of common
OperatingSystem
s. - PPC - Enum constant in enum class com.twelvemonkeys.lang.Platform.Architecture
- processRemoved(Map.Entry) - Method in class com.twelvemonkeys.util.TimeoutMap
- processRemoved(Map.Entry<K, V>) - Method in interface com.twelvemonkeys.util.ExpiringMap
-
May be used by clients as a call-back to notify when mappings expire from the map.
- processRemoved(Map.Entry<K, V>) - Method in class com.twelvemonkeys.util.LRUHashMap
-
Default implementation does nothing.
- processRemoved(Map.Entry<K, V>) - Method in class com.twelvemonkeys.util.LRUMap
-
Default implementation does nothing.
- PropertyConverter - Interface in com.twelvemonkeys.util.convert
-
Converts strings to objects and back.
- providers(Class<T>) - Method in class com.twelvemonkeys.util.service.ServiceRegistry
-
Returns an
Iterator
containing all providers in the given category. - put(Object, Object) - Method in class com.twelvemonkeys.util.NullMap
- put(String, Object) - Method in class com.twelvemonkeys.util.BeanMap
- put(String, V) - Method in class com.twelvemonkeys.util.IgnoreCaseMap
-
Maps the specified key to the specified value in this map.
- put(K, V) - Method in class com.twelvemonkeys.util.LinkedMap
- put(K, V) - Method in class com.twelvemonkeys.util.TimeoutMap
-
Associates the specified pValue with the specified pKey in this map (optional operation).
- put(K, V) - Method in class com.twelvemonkeys.util.WeakWeakMap
- putAll(Map) - Method in class com.twelvemonkeys.util.NullMap
- putAll(Map<? extends K, ? extends V>) - Method in class com.twelvemonkeys.util.WeakWeakMap
R
- 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() - 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.BeanMap
- 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) - Method in class com.twelvemonkeys.util.LRUMap
-
always returns
false
, and instead invokesremoveLRU()
ifsize >= maxSize
. - 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 invokesremoveLRU()
ifsize >= maxSize
. - removeEntry(Map.Entry<K, V>) - Method in class com.twelvemonkeys.util.TimeoutMap
-
Removes the given entry from the Map.
- 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.
S
- 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 thepCategories
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.
- setValue(V) - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
- sInstance - Static variable in class com.twelvemonkeys.util.convert.Converter
-
Our singleton instance
- size() - Method in class com.twelvemonkeys.util.LinkedMap
- 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.
- Solaris - Enum constant in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
- SPARC - Enum constant in enum class com.twelvemonkeys.lang.Platform.Architecture
- split(String, String) - Method in class com.twelvemonkeys.lang.StringUtil
-
Splits this string around matches of the given regular expression.
- split(String, String, int) - 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, boolean) - 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, 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(Object, int, 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(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.
T
- 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 (expires) 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(long) - Constructor for class com.twelvemonkeys.util.TimeoutMap
-
Creates a
TimeoutMap
with the given expiry time (milliseconds). - 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(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) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of doubles.
- toDoubleArray(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of doubles.
- 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.
- toIntArray(String, String, int) - 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) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of longs.
- toLongArray(String, 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 class com.twelvemonkeys.lang.Platform.Architecture
- toString() - Method in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
- toString() - Method in class com.twelvemonkeys.util.LinkedMap.LinkedEntry
- 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(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(String) - Method in class com.twelvemonkeys.util.Time
-
Deprecated.
- toStringArray(String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a comma-separated String to an array of Strings.
- toStringArray(String, String) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Converts a delimiter 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
.
U
- Unknown - Enum constant in enum class com.twelvemonkeys.lang.Platform.Architecture
- Unknown - Enum constant in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
- unregisterConverter(Class<?>) - Static method in class com.twelvemonkeys.util.convert.Converter
-
Un-registers a converter for a given type.
- unwrapType(Class) - Static method in class com.twelvemonkeys.lang.ReflectUtil
-
Returns the primitive type for the given wrapper type.
- USE_FIRST_VALUE - Static variable in interface com.twelvemonkeys.util.DuplicateHandler
-
Will use the first (old) value.
- USE_LAST_VALUE - Static variable in interface com.twelvemonkeys.util.DuplicateHandler
-
Will use the last (new) value.
V
- Validate - Class in com.twelvemonkeys.lang
-
Kind of like
org.apache.commons.lang.Validate
. - valueOf(Object) - Static method in class com.twelvemonkeys.lang.StringUtil
-
Returns the value of the given
Object
, as aString
. - valueOf(String) - Static method in enum class com.twelvemonkeys.lang.Platform.Architecture
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.twelvemonkeys.lang.Platform.Architecture
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class com.twelvemonkeys.util.LinkedMap
- values() - Method in class com.twelvemonkeys.util.NullMap
- values() - Method in class com.twelvemonkeys.util.TimeoutMap
- values() - Method in class com.twelvemonkeys.util.WeakWeakMap
- version() - Static method in class com.twelvemonkeys.lang.Platform
-
Shorthand for
Platform.get().getVersion()
. - visit(T) - Method in interface com.twelvemonkeys.util.Visitor
-
Visits an element.
- Visitor<T> - Interface in com.twelvemonkeys.util
-
A generic visitor.
W
- WeakWeakMap<K,
V> - Class in com.twelvemonkeys.util -
Special-purpose map implementation with weak keys and weak values.
- WeakWeakMap() - Constructor for class com.twelvemonkeys.util.WeakWeakMap
-
Creates a
WeakWeakMap
with default initial capacity and load factor. - WeakWeakMap(int) - Constructor for class com.twelvemonkeys.util.WeakWeakMap
-
Creates a
WeakWeakMap
with the given initial capacity and default load factor. - WeakWeakMap(int, float) - Constructor for class com.twelvemonkeys.util.WeakWeakMap
-
Creates a
WeakWeakMap
with the given initial capacity and load factor. - WeakWeakMap(Map<? extends K, ? extends V>) - Constructor for class com.twelvemonkeys.util.WeakWeakMap
-
Creates a
WeakWeakMap
containing the mappings in the given map. - WildcardStringParser - Class in com.twelvemonkeys.util.regex
-
Deprecated.Will probably be removed in the near future
- WildcardStringParser(String) - Constructor for class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Creates a wildcard string parser.
- WildcardStringParser(String, boolean) - Constructor for class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Creates a wildcard string parser.
- WildcardStringParser(String, boolean, PrintStream) - Constructor for class com.twelvemonkeys.util.regex.WildcardStringParser
-
Deprecated.Creates a wildcard string parser.
- Windows - Enum constant in enum class com.twelvemonkeys.lang.Platform.OperatingSystem
- wrapType(Class) - Static method in class com.twelvemonkeys.lang.ReflectUtil
-
Returns the wrapper type for the given primitive type.
X
- X86 - Enum constant in enum class com.twelvemonkeys.lang.Platform.Architecture
- XML_PROPERTIES - Static variable in class com.twelvemonkeys.lang.SystemUtil
-
".xml"
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form