gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster_dataaccess_refactoring / org.gvsig.raster.lib / org.gvsig.raster.lib.impl / src / main / java / org / gvsig / raster / util / persistence / GenericPersistentBooleanArray.java @ 2341
History | View | Annotate | Download (549 Bytes)
1 |
package org.gvsig.raster.util.persistence; |
---|---|
2 |
|
3 |
import org.gvsig.tools.persistence.PersistentState; |
4 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
5 |
|
6 |
/**
|
7 |
*
|
8 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
9 |
*
|
10 |
*/
|
11 |
public class GenericPersistentBooleanArray extends GenericPersistentObject { |
12 |
public void loadFromState(PersistentState state) throws PersistenceException { |
13 |
obj = state.getBooleanArray("value");
|
14 |
} |
15 |
public void saveToState(PersistentState state) throws PersistenceException { |
16 |
state.set("value", ((boolean[])obj)); |
17 |
} |
18 |
} |