public class DimensionConverter extends AbstractConverter
Dimension
converter. Converted as strings by joining width and
height with an "x" (e.g., 640x480). The conversion from strings supports
many formats, as long as two numeric groups are present (width and height,
respectively). If more than two groups of digits, only the first two
are kept. If only one value is present, it is used for both width and height.
Examples of supported formats:
Constructor and Description |
---|
DimensionConverter() |
Modifier and Type | Method and Description |
---|---|
protected String |
nullSafeToString(Object object) |
protected <T> T |
nullSafeToType(String value,
Class<T> type) |
equals, hashCode, toString, toString, toStringException, toStringException, toType, toTypeException, toTypeException, toUnsupportedTypeException
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toString, toType
protected String nullSafeToString(Object object)
nullSafeToString
in class AbstractConverter
protected <T> T nullSafeToType(String value, Class<T> type)
nullSafeToType
in class AbstractConverter
Copyright © 2008–2023 Norconex Inc.. All rights reserved.