public final class Size extends Object implements Serializable, Cloneable, Comparable<Size>
| Modifier and Type | Class and Description |
|---|---|
static class |
Size.Level
An enumeration of size levels.
|
static class |
Size.Range
An enumeration of size ranges.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
int |
compareTo(Size other) |
boolean |
equals(Object obj) |
int |
hashCode() |
static Size |
of(Size.Range range,
Size.Level level)
Constructs a new instance using the given range and level.
|
String |
toString() |
static Size |
valueOf(String value)
Constructs a new instance using the given string representation.
|
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic int compareTo(Size other)
compareTo in interface Comparable<Size>public static Size of(Size.Range range, Size.Level level)
range - size rangelevel - size levelpublic static Size valueOf(String value)
value - string representation of sizeNullPointerException - if value is nullIllegalArgumentException - if value is not a valid
string representation of a sizeCopyright © 2014–2016. All rights reserved.