From 5759e17941c537b7c73867d384cb9e22ce6f2b52 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 16 Apr 2020 15:04:40 -0400 Subject: [Update] Version 0.8.1 + Change domain to an actual website. --- .../net/transit/network/packet/ArrayPacket.java | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/main/java/net/transit/network/packet/ArrayPacket.java (limited to 'src/main/java/net/transit/network/packet/ArrayPacket.java') diff --git a/src/main/java/net/transit/network/packet/ArrayPacket.java b/src/main/java/net/transit/network/packet/ArrayPacket.java deleted file mode 100644 index fbea811..0000000 --- a/src/main/java/net/transit/network/packet/ArrayPacket.java +++ /dev/null @@ -1,52 +0,0 @@ -package net.transit.network.packet; - -import java.util.ArrayList; - -import net.transit.type.Type; - -public class ArrayPacket implements Packet -{ - private ArrayList arrayData; - private Type type; - - public ArrayPacket(D startValue, Type t) - { - arrayData = new ArrayList(0); - arrayData.add(startValue); - type = t; - } - - @Override - public D getData() - { - if(arrayData.size() > 0) return arrayData.get(0); - return null; - } - - public void addData(D data) - { - arrayData.add(data); - } - - public int dataStored() - { - return arrayData.size(); - } - - public D popAndShift() - { - D temp = null; - - if(arrayData.size() > 0) - { - temp = arrayData.remove(0); - } - - return temp; - } - - @Override - public Type getType() { - return type; - } -} \ No newline at end of file -- cgit v1.2.3