storable.java
来自「手机版俄罗斯方块」· Java 代码 · 共 31 行
JAVA
31 行
/*
* Created on 2005-5-26
* Author: Liao Xuefeng, asklxf@163.com
* Copyright (C) 2005, Liao Xuefeng.
*/
package com.crackj2ee.j2me.game.russia;
/**
* 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 + -
显示快捷键?