MCPcopy Create free account
hub / github.com/badvision/jace / getType

Method getType

src/main/java/jace/hardware/massStorage/FileNode.java:87–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 public static int SAPLING_MAX_SIZE = ProdosVirtualDisk.BLOCK_SIZE * 128;
86
87 @Override
88 public EntryType getType() {
89 long fileSize = getPhysicalFile().length();
90 if (fileSize <= SEEDLING_MAX_SIZE) {
91 setType(EntryType.SEEDLING);
92 return EntryType.SEEDLING;
93 } else if (fileSize <= SAPLING_MAX_SIZE) {
94 setType(EntryType.SAPLING);
95 return EntryType.SAPLING;
96 } else {
97 setType(EntryType.TREE);
98 return EntryType.TREE;
99 }
100 }
101
102 @Override
103 public void setName(String name) {

Callers 5

readBlockMethod · 0.95
handleFirmwareAccessMethod · 0.45
handleIOAccessMethod · 0.45
handleZipChipEventMethod · 0.45
handleTranswarpEventMethod · 0.45

Calls 2

getPhysicalFileMethod · 0.80
setTypeMethod · 0.45

Tested by

no test coverage detected