public class Point2DConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Point2D.| Constructor and Description |
|---|
Point2DConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
Object |
fromString(String str) |
static Point2D.Float |
pointFromString(String point)
Returns
Point2D read from string. |
static String |
pointToString(Point2D point)
Returns
Point2D converted into string. |
String |
toString(Object obj) |
public boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverterpublic String toString(Object obj)
toString in interface com.thoughtworks.xstream.converters.SingleValueConvertertoString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverterpublic Object fromString(String str)
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverterfromString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverterpublic static String pointToString(Point2D point)
Point2D converted into string.public static Point2D.Float pointFromString(String point)
Point2D read from string.Copyright © 2020. All rights reserved.