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

📄 usercollection.java

📁 SANCHO
💻 JAVA
字号:
/* * Copyright (C) 2004-2005 Rutger M. Ovidius for use with the sancho project. * See LICENSE.txt for license information. */package sancho.model.mldonkey;import sancho.core.ICore;import sancho.model.mldonkey.utility.MessageBuffer;public class UserCollection extends ACollection_Int {  UserCollection(ICore communication) {    super(communication);  }  public void read(MessageBuffer messageBuffer) {    int userID = messageBuffer.getInt32();    User user = (User) get(userID);    if (user != null) {      user.read(userID, messageBuffer);    } else {      user = core.getCollectionFactory().getUser();      user.read(userID, messageBuffer);      put(userID, user);    }    this.setChanged();    this.notifyObservers(user);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -