⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 storable.java

📁 手机版俄罗斯方块
💻 JAVA
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -