public class

Weight

extends Object
implements Serializable
java.lang.Object
   ↳ com.amazonaws.fba_outbound.doc._2007_08_02.Weight

Class Overview

generic weight info element - weight is a float with KG or LB for units

Summary

Fields
private Object __equalsCalc
private boolean __hashCodeCalc
private static TypeDesc typeDesc
private String unit
private BigDecimal value
Public Constructors
Weight()
Weight(String unit, BigDecimal value)
Public Methods
synchronized boolean equals(Object obj)
static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
Get Custom Deserializer
static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Get Custom Serializer
static TypeDesc getTypeDesc()
Return type metadata object
String getUnit()
Gets the unit value for this Weight.
BigDecimal getValue()
Gets the value value for this Weight.
synchronized int hashCode()
void setUnit(String unit)
Sets the unit value for this Weight.
void setValue(BigDecimal value)
Sets the value value for this Weight.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private Object __equalsCalc

private boolean __hashCodeCalc

private static TypeDesc typeDesc

private String unit

private BigDecimal value

Public Constructors

public Weight ()

public Weight (String unit, BigDecimal value)

Parameters
unit
value

Public Methods

public synchronized boolean equals (Object obj)

Parameters
obj

public static Deserializer getDeserializer (String mechType, Class _javaType, QName _xmlType)

Get Custom Deserializer

Parameters
mechType
_javaType
_xmlType

public static Serializer getSerializer (String mechType, Class _javaType, QName _xmlType)

Get Custom Serializer

Parameters
mechType
_javaType
_xmlType

public static TypeDesc getTypeDesc ()

Return type metadata object

public String getUnit ()

Gets the unit value for this Weight.

Returns
  • unit

public BigDecimal getValue ()

Gets the value value for this Weight.

Returns
  • value

public synchronized int hashCode ()

public void setUnit (String unit)

Sets the unit value for this Weight.

Parameters
unit

public void setValue (BigDecimal value)

Sets the value value for this Weight.

Parameters
value