1234567891011121314151617181920212223242526272829303132 |
- package at.acdp.urweb.sclient;
- import at.acdp.urweb.sclient.data.ILogentry;
- import java.util.ArrayList;
- import java.util.Arrays;
- public class Log {
- private final static int LENGTH=100;
- public ILogentry[] list=new ILogentry[LENGTH];
- private int pos=0;
- public void add(ILogentry le) {
- synchronized (list) {
- list[pos]=le;
- }
- }
- public void get(int from) {
- synchronized (list){
- int idx=pos-from;
- // ILogentry[] ret=new ILogentry[];
- // System.arraycopy(list,from,ret,);
- }
- }
- }
|