com.anywherecommerce.android.sdk
Class PersistableObject
-
java.lang.Object
-
com.anywherecommerce.android.sdk.SerializableObject
com.anywherecommerce.android.sdk.PersistableObject -
Direct Known Subclasses:CurrencyCodes-
public abstract class <span class="typeNameLabel">PersistableObject</span> extends
-
<a name="constructor.summary"></a>
### Constructor Summary
Constructor and Description`<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/PersistableObject.html#PersistableObject--">PersistableObject</a></span>()`
<a name="method.summary"></a>
### Method Summary
Modifier and TypeMethod and Description`protected static <T extends
<a href="#com/anywherecommerce/android/sdk/PersistableObject.html" title="class in com.anywherecommerce.android.sdk">PersistableObject</a>><br></br>T````
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/PersistableObject.html#loadFromFile-java.lang.Class-java.lang.String-">loadFromFile</a></span>(java.lang.Class<T> cls,
java.lang.String fileName)
``` `abstract boolean``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/PersistableObject.html#save--">save</a></span>()` `protected boolean``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/PersistableObject.html#saveToFile-java.lang.String-">saveToFile</a></span>(java.lang.String fileName)`
<a name="methods.inherited.from.class.com.anywherecommerce.android.sdk.SerializableObject"></a>
### Methods inherited from class com.anywherecommerce.android.sdk.[SerializableObject](#com/anywherecommerce/android/sdk/SerializableObject.html "class in com.anywherecommerce.android.sdk")
`
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#copyFieldsFrom-com.anywherecommerce.android.sdk.SerializableObject-">copyFieldsFrom</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserialize-java.lang.Class-java.lang.String-">deserialize</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserializeFromFile-java.lang.Class-java.io.InputStream-">deserializeFromFile</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserializeFromFile-java.lang.Class-int-">deserializeFromFile</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserializeFromFile-java.lang.Class-java.lang.String-">deserializeFromFile</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#serialize--">serialize</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#serializeToFile-java.lang.String-">serializeToFile</a>`
<a name="methods.inherited.from.class.java.lang.Object"></a>
### Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
-
<a name="constructor.detail"></a>
### Constructor Detail
<a name="PersistableObject--"></a>
#### PersistableObject
`public PersistableObject()`
<a name="method.detail"></a>
### Method Detail
<a name="save--"></a>
#### save
`public abstract boolean save()`
<a name="saveToFile-java.lang.String-"></a>
#### saveToFile
`protected boolean saveToFile(java.lang.String fileName)`
<a name="loadFromFile-java.lang.Class-java.lang.String-"></a>
#### loadFromFile
```
protected static <T extends
<a href="#com/anywherecommerce/android/sdk/PersistableObject.html" title="class in com.anywherecommerce.android.sdk">PersistableObject</a>> T loadFromFile(java.lang.Class<T> cls,
java.lang.String fileName)
```