| java.lang.Object org.joda.time.convert.ConverterSet
ConverterSet | class ConverterSet (Code) | | A set of converters, which allows exact converters to be quickly
selected. This class is threadsafe because it is (essentially) immutable.
author: Brian S O'Neill since: 1.0 |
Inner Class :static class Entry | |
add | ConverterSet add(Converter converter, Converter[] removed)(Code) | | Returns a copy of this set, with the given converter added. If a
matching converter is already in the set, the given converter replaces
it. If the converter is exactly the same as one already in the set, the
original set is returned.
Parameters: converter - converter to add, must not be null Parameters: removed - if not null, element 0 is set to the removed converter throws: NullPointerException - if converter is null |
copyInto | void copyInto(Converter[] converters)(Code) | | Copies all the converters in the set to the given array.
|
remove | ConverterSet remove(Converter converter, Converter[] removed)(Code) | | Returns a copy of this set, with the given converter removed. If the
converter was not in the set, the original set is returned.
Parameters: converter - converter to remove, must not be null Parameters: removed - if not null, element 0 is set to the removed converter throws: NullPointerException - if converter is null |
remove | ConverterSet remove(int index, Converter[] removed)(Code) | | Returns a copy of this set, with the converter at the given index
removed.
Parameters: index - index of converter to remove Parameters: removed - if not null, element 0 is set to the removed converter throws: IndexOutOfBoundsException - if the index is invalid |
size | int size()(Code) | | Returns the amount of converters in the set.
|
|
|