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

Method toString

src/main/java/com/jmatio/types/MLArray.java:265–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 }
264
265 @Override
266 public String toString() {
267 StringBuilder sb = new StringBuilder();
268 sb.append('[');
269 if (dims.length > 3) {
270 sb.append(dims.length);
271 sb.append('D');
272 } else {
273 sb.append(dims[0]);
274 sb.append('x');
275 sb.append(dims[1]);
276 if (dims.length == 3) {
277 sb.append('x');
278 sb.append(dims[2]);
279 }
280 }
281 sb.append(" ");
282 sb.append(typeToString(type));
283 if (isLogical()) {
284 sb.append(" (logical)");
285 }
286 sb.append(" array");
287 if (isSparse()) {
288 sb.append(" (sparse");
289 if (isComplex()) {
290 sb.append(" complex");
291 }
292 sb.append(")");
293 } else if (isComplex()) {
294 sb.append(" (complex)");
295 }
296 sb.append(']');
297 return sb.toString();
298 }
299
300 public String contentToString() {
301 return "content cannot be displayed";

Callers 5

contentToStringMethod · 0.45
contentToStringMethod · 0.45
contentToStringMethod · 0.45
getStringMethod · 0.45
contentToStringMethod · 0.45

Calls 4

typeToStringMethod · 0.95
isLogicalMethod · 0.95
isSparseMethod · 0.95
isComplexMethod · 0.95

Tested by

no test coverage detected