public class

Duration

extends Object
java.lang.Object
   ↳ com.netsuite.webservices.platform.core_2010_2.Duration

Class Overview

Java class for Duration complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Duration">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="timeSpan" type="{http://www.w3.org/2001/XMLSchema}double"/>
         <element name="unit" type="{urn:types.core_2010_2.platform.webservices.netsuite.com}DurationUnit"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

Summary

Fields
protected double timeSpan
protected DurationUnit unit
Public Constructors
Duration()
Public Methods
double getTimeSpan()
Gets the value of the timeSpan property.
DurationUnit getUnit()
Gets the value of the unit property.
void setTimeSpan(double value)
Sets the value of the timeSpan property.
void setUnit(DurationUnit value)
Sets the value of the unit property.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected double timeSpan

protected DurationUnit unit

Public Constructors

public Duration ()

Public Methods

public double getTimeSpan ()

Gets the value of the timeSpan property.

public DurationUnit getUnit ()

Gets the value of the unit property.

Returns

public void setTimeSpan (double value)

Sets the value of the timeSpan property.

Parameters
value

public void setUnit (DurationUnit value)

Sets the value of the unit property.

Parameters
value Allowed object is DurationUnit