public class AreaSize extends Object
Constructor and Description |
---|
AreaSize(int id,
String size)
Creates a new AreaSize.
|
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static AreaSize |
fromString(String string)
Createa an AreaSize instance by parsing the specified string.
|
int |
getId() |
String |
getSize() |
static String |
mapToString(Map<Integer,AreaSize> map)
Converts a map with AreaSizes to a string.
|
static Map<Integer,AreaSize> |
stringToMap(String string)
Converts a string to a map of AreaSizes.
|
public AreaSize(int id, String size)
id
- the ID of the aressize
- the size of the area. This is either height or width, depending on the
type of the area.public static AreaSize fromString(String string)
string
- string-representation of an AreaSizepublic String asString()
public int getId()
public String getSize()
public static Map<Integer,AreaSize> stringToMap(String string)
string
- string to parseCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.