com.sun.syndication.feed.module.base.types
Class Size

java.lang.Object
  extended by com.sun.syndication.feed.module.base.types.Size
All Implemented Interfaces:
CloneableType, java.lang.Cloneable

public class Size
extends java.lang.Object
implements CloneableType

Represents the size on an item in 2 or 3 dimensions.

Version:
$Revision: 1.2 $
Author:
Robert "kebernet" Cooper

Constructor Summary
Size(FloatUnit length, FloatUnit width)
          Creates a new instance of Size
Size(FloatUnit length, FloatUnit width, FloatUnit height)
          Creates a new instance of Size.
Size(java.lang.String source)
          Creates a new Size object parsing a string value.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size

public Size(java.lang.String source)
Creates a new Size object parsing a string value.

Parameters:
source - String value to parse

Size

public Size(FloatUnit length,
            FloatUnit width)
Creates a new instance of Size

Parameters:
length - lenght value
width - width value

Size

public Size(FloatUnit length,
            FloatUnit width,
            FloatUnit height)
Creates a new instance of Size.

Parameters:
length - Length value.
width - Width value.
height - Height value.
Method Detail

getHeight

public FloatUnit getHeight()
Height value.

Returns:
Height value.

getLength

public FloatUnit getLength()
Length value.

Returns:
Length value.

getWidth

public FloatUnit getWidth()
Width value.

Returns:
Width value.

clone

public java.lang.Object clone()
Duplicates this object.

Specified by:
clone in interface CloneableType
Overrides:
clone in class java.lang.Object
Returns:
A duplicate Size object.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.