matlabcontrol.link.MatlabInt8 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matconsolectl Show documentation
Show all versions of matconsolectl Show documentation
MatConsoleCtl - control MATLAB from Java
/*
* Code licensed under new-style BSD (see LICENSE).
* All code up to tags/original: Copyright (c) 2013, Joshua Kaplan
* All code after tags/original: Copyright (c) 2016, DiffPlug
*/
package matlabcontrol.link;
/**
* MATLAB {@code int8} with real and imaginary components.
*
* @since 4.2.0
* @author Joshua Kaplan
*/
public final class MatlabInt8 extends MatlabNumber {
private static final Byte DEFAULT = 0;
public MatlabInt8(byte real, byte imag) {
super(DEFAULT, real, imag);
}
/**
* Returns the real value.
*
* @return
*/
public byte toReal() {
return _real;
}
/**
* Returns the imaginary value.
*
* @return
*/
public byte toImaginary() {
return _imag;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy