MCPcopy Index your code
hub / github.com/diffplug/matfilerw / typeToString

Method typeToString

src/main/java/com/jmatio/types/MLArray.java:153–179  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

151 }
152
153 public static final String typeToString(int type) {
154 String s;
155 // @formatter:off
156 switch (type) {
157 case mxUNKNOWN_CLASS: s = "unknown"; break;
158 case mxCELL_CLASS: s = "cell"; break;
159 case mxSTRUCT_CLASS: s = "struct"; break;
160 case mxCHAR_CLASS: s = "char"; break;
161 case mxSPARSE_CLASS: s = "sparse"; break;
162 case mxDOUBLE_CLASS: s = "double"; break;
163 case mxSINGLE_CLASS: s = "single"; break;
164 case mxINT8_CLASS: s = "int8"; break;
165 case mxUINT8_CLASS: s = "uint8"; break;
166 case mxINT16_CLASS: s = "int16"; break;
167 case mxUINT16_CLASS: s = "uint16"; break;
168 case mxINT32_CLASS: s = "int32"; break;
169 case mxUINT32_CLASS: s = "uint32"; break;
170 case mxINT64_CLASS: s = "int64"; break;
171 case mxUINT64_CLASS: s = "uint64"; break;
172 case mxFUNCTION_CLASS: s = "function_handle"; break;
173 case mxOPAQUE_CLASS: s = "opaque"; break;
174 case mxOBJECT_CLASS: s = "object"; break;
175 default: s = "unknown"; break;
176 }
177 // @formatter:on
178 return s;
179 }
180
181 public boolean isCell() {
182 return type == mxCELL_CLASS;

Callers 4

toStringMethod · 0.95
readMatrixMethod · 0.95
writeMatrixMethod · 0.95
writeMatrixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected