public class Size extends Object implements CloneableType
| Constructor and Description |
|---|
Size(FloatUnit length,
FloatUnit width) |
Size(FloatUnit length,
FloatUnit width,
FloatUnit height) |
Size(String source)
Creates a new Size object parsing a string value.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Duplicates this object.
|
boolean |
equals(Object o) |
FloatUnit |
getHeight()
Height value.
|
FloatUnit |
getLength()
Length value.
|
FloatUnit |
getWidth()
Width value.
|
String |
toString()
Returns a string representation of this object.
|
public Size(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 Object clone()
clone in interface CloneableTypeclone in class Objectpublic String toString()
Copyright © 2021. All rights reserved.