1 24 package org.objectweb.jalisto.se.impl.server.page; 25 26 import org.objectweb.jalisto.se.api.internal.DataWrapper; 27 import org.objectweb.jalisto.se.impl.InFileAddress; 28 29 public abstract class UserPage extends Page { 30 public UserPage(int size, Object pid) { 31 super(size); 32 this.pid = ((Integer ) pid).intValue(); 33 } 34 35 public Object getDataAt(InFileAddress dataIfa) { 36 DataWrapper readObject = (DataWrapper) storedDatas[dataIfa.getIndex()]; 37 if (readObject != null) { 38 return readObject.getClone(); 39 } 40 return null; 41 } 42 43 public Object getPid() { 44 return new Integer (pid); 45 } 46 47 private int pid; 48 49 static final long serialVersionUID = -7589000097964761459L; 50 } 51 | Popular Tags |