storable.java
来自「J2ME 开发的俄罗斯方块手机游戏源码。」· Java 代码 · 共 30 行
JAVA
30 行
/*
* Created on 2005-5-26
* Author: Liao Xuefeng, asklxf@163.com
* Copyright (C) 2005, Liao Xuefeng.
*/
/**
* Any class that implements the Storable can store & load its internal states.
*
* @author Xuefeng
*/
public interface Storable {
/**
* Get the data it wants to store.
* @return The data it wants to store.
*/
byte[] getRecordData();
/**
* Read data of byte[] data, from index of offset, and return
* the actual bytes it read, or (-1) if failed.
* @param data The byte array.
* @param offset The index where to start read.
* @return The actual bytes it read, or (-1) if failed.
*/
int setRecordData(byte[] data, int offset);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?