public class Size extends java.lang.Object implements CloneableType
Modifier and Type | Field and Description |
---|---|
private FloatUnit |
height
height
|
private FloatUnit |
length
length
|
private FloatUnit |
width
width
|
Constructor and Description |
---|
Size(FloatUnit length,
FloatUnit width) |
Size(FloatUnit length,
FloatUnit width,
FloatUnit height) |
Size(java.lang.String source)
Creates a new Size object parsing a string value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Duplicates this object.
|
boolean |
equals(java.lang.Object o) |
FloatUnit |
getHeight()
Height value.
|
FloatUnit |
getLength()
Length value.
|
FloatUnit |
getWidth()
Width value.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
private FloatUnit height
private final FloatUnit length
private final FloatUnit width
public Size(java.lang.String source)
source
- String value to parsepublic Size(FloatUnit length, FloatUnit width)
length
- lenght valuewidth
- width valuepublic FloatUnit getHeight()
public FloatUnit getLength()
public FloatUnit getWidth()
public java.lang.Object clone()
clone
in interface CloneableType
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object