public class Collection2ListConverter extends AbstractTypeConverter<List<?>,Collection<?>>
Collection to List using the default order of the
collection as provided by the iterator. The converter is read only.
The implementation is not optimized for settings where AbstractTypeConverter.getValue()
is called often.| Constructor and Description |
|---|
Collection2ListConverter(ValueModel<Collection<?>> pSubject)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
convertOwnToSubjectValue(List<?> pOwnValue)
throws an exception, since this converter is read only
Converts from the type that this value model offers to the type
its subject value model.
|
List<?> |
convertSubjectToOwnValue(Collection<?> pSubjectValue)
creates a list with the same content as the collection
Converts from the type that the subject value model provides
to the type this value model offers.
|
dispose, getPropagateFailedConversions, getSubject, getSubjectValue, getSyncKey, getSyncMessage, getSyncState, getValue, getValue, isEditable, setPropagateFailedConversions, setSyncKey, setSyncMessage, setValue, stateChangedaddChangeListener, booleanValue, checkDisposed, doubleValue, fireStateChanged, floatValue, getDependents, getName, intValue, isDisposed, isInSetValue, isSetForced, longValue, onChangeSend, removeChangeListener, retractInterestsFor, setInSetValue, setName, setObjectValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueForced, signalExternalUpdate, stringValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, booleanValue, doubleValue, floatValue, getDependents, getName, intValue, isDisposed, isSetForced, longValue, onChangeSend, removeChangeListener, retractInterestsFor, setName, setObjectValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueForced, stringValuepublic Collection2ListConverter(ValueModel<Collection<?>> pSubject)
pSubject - the value model providing the Collectionpublic Collection<?> convertOwnToSubjectValue(List<?> pOwnValue) throws ConversionException
pOwnValue - value in this value model's typeConversionException - if we detected an error during the conversionpublic List<?> convertSubjectToOwnValue(Collection<?> pSubjectValue) throws ConversionException
pSubjectValue - value in the subject's typeConversionException - if we detected an error during the conversionCopyright © 2017 Jürgen Zeller (privat). All rights reserved.