first commit
This commit is contained in:
19
FrameList.java
Normal file
19
FrameList.java
Normal file
@@ -0,0 +1,19 @@
|
||||
import java.util.*;
|
||||
|
||||
public class FrameList {
|
||||
ArrayList<EthernetFrame> list;
|
||||
|
||||
public FrameList() {
|
||||
this.list = new ArrayList<EthernetFrame>();
|
||||
}
|
||||
|
||||
public void add(EthernetFrame frame) {
|
||||
this.list.add(frame);
|
||||
}
|
||||
|
||||
public EthernetFrame nextFrame() {
|
||||
EthernetFrame frame = this.list.get(0);
|
||||
this.list.remove(0);
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user