Package org.killbill.billing.account.api
Class DefaultImmutableAccountData
- java.lang.Object
-
- org.killbill.billing.account.api.DefaultImmutableAccountData
-
- All Implemented Interfaces:
Externalizable
,Serializable
,ImmutableAccountData
public class DefaultImmutableAccountData extends Object implements ImmutableAccountData, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultImmutableAccountData()
DefaultImmutableAccountData(UUID id, String externalKey, Currency currency, org.joda.time.DateTimeZone timeZone, org.joda.time.DateTimeZone fixedOffsetTimeZone, org.joda.time.DateTime referenceTime)
DefaultImmutableAccountData(Account account)
DefaultImmutableAccountData(AccountModelDao account)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Currency
getCurrency()
String
getExternalKey()
org.joda.time.DateTimeZone
getFixedOffsetTimeZone()
UUID
getId()
org.joda.time.DateTime
getReferenceTime()
org.joda.time.DateTimeZone
getTimeZone()
int
hashCode()
void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput oo)
-
-
-
Constructor Detail
-
DefaultImmutableAccountData
public DefaultImmutableAccountData()
-
DefaultImmutableAccountData
public DefaultImmutableAccountData(UUID id, String externalKey, Currency currency, org.joda.time.DateTimeZone timeZone, org.joda.time.DateTimeZone fixedOffsetTimeZone, org.joda.time.DateTime referenceTime)
-
DefaultImmutableAccountData
public DefaultImmutableAccountData(Account account)
-
DefaultImmutableAccountData
public DefaultImmutableAccountData(AccountModelDao account)
-
-
Method Detail
-
getId
public UUID getId()
- Specified by:
getId
in interfaceImmutableAccountData
-
getExternalKey
public String getExternalKey()
- Specified by:
getExternalKey
in interfaceImmutableAccountData
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrency
in interfaceImmutableAccountData
-
getTimeZone
public org.joda.time.DateTimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceImmutableAccountData
-
getFixedOffsetTimeZone
public org.joda.time.DateTimeZone getFixedOffsetTimeZone()
- Specified by:
getFixedOffsetTimeZone
in interfaceImmutableAccountData
-
getReferenceTime
public org.joda.time.DateTime getReferenceTime()
- Specified by:
getReferenceTime
in interfaceImmutableAccountData
-
readExternal
public void readExternal(ObjectInput in) throws IOException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-
writeExternal
public void writeExternal(ObjectOutput oo) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
-