Rename and clean up MapleDataEntry
This commit is contained in:
@@ -26,8 +26,8 @@ import java.util.List;
|
||||
/**
|
||||
* @author Matze
|
||||
*/
|
||||
public interface DataDirectoryEntry extends MapleDataEntry {
|
||||
public interface DataDirectoryEntry extends DataEntry {
|
||||
List<DataDirectoryEntry> getSubdirectories();
|
||||
List<MapleDataFileEntry> getFiles();
|
||||
MapleDataEntry getEntry(String name);
|
||||
DataEntry getEntry(String name);
|
||||
}
|
||||
|
||||
@@ -22,10 +22,9 @@
|
||||
package provider;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Matze
|
||||
*/
|
||||
public interface MapleDataEntry extends DataEntity {
|
||||
public interface DataEntry extends DataEntity {
|
||||
String getName();
|
||||
int getSize();
|
||||
int getChecksum();
|
||||
@@ -25,6 +25,6 @@ package provider;
|
||||
*
|
||||
* @author Matze
|
||||
*/
|
||||
public interface MapleDataFileEntry extends MapleDataEntry {
|
||||
public interface MapleDataFileEntry extends DataEntry {
|
||||
void setOffset(int offset);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ package provider.wz;
|
||||
|
||||
import provider.DataDirectoryEntry;
|
||||
import provider.DataEntity;
|
||||
import provider.MapleDataEntry;
|
||||
import provider.DataEntry;
|
||||
import provider.MapleDataFileEntry;
|
||||
|
||||
import java.util.*;
|
||||
@@ -31,7 +31,7 @@ import java.util.*;
|
||||
public class WZDirectoryEntry extends WZEntry implements DataDirectoryEntry {
|
||||
private List<DataDirectoryEntry> subdirs = new ArrayList<>();
|
||||
private List<MapleDataFileEntry> files = new ArrayList<>();
|
||||
private Map<String, MapleDataEntry> entries = new HashMap<>();
|
||||
private Map<String, DataEntry> entries = new HashMap<>();
|
||||
|
||||
public WZDirectoryEntry(String name, int size, int checksum, DataEntity parent) {
|
||||
super(name, size, checksum, parent);
|
||||
@@ -59,7 +59,7 @@ public class WZDirectoryEntry extends WZEntry implements DataDirectoryEntry {
|
||||
return Collections.unmodifiableList(files);
|
||||
}
|
||||
|
||||
public MapleDataEntry getEntry(String name) {
|
||||
public DataEntry getEntry(String name) {
|
||||
return entries.get(name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
package provider.wz;
|
||||
|
||||
import provider.DataEntity;
|
||||
import provider.MapleDataEntry;
|
||||
import provider.DataEntry;
|
||||
|
||||
public class WZEntry implements MapleDataEntry {
|
||||
public class WZEntry implements DataEntry {
|
||||
private String name;
|
||||
private int size;
|
||||
private int checksum;
|
||||
|
||||
Reference in New Issue
Block a user