Generics (Java & Matlab objects) List and Map for Matlab

バージョン 1.0.0.0 (14.3 KB) 作成者: Zangdaarr
Generic simple List and Map for matlab
ダウンロード: 45
更新 2016/9/23

ライセンスの表示

Work from Matlab 2011b, developed on Matlab 2014b.
Dependency: MatlabFunctions (http://www.mathworks.com/matlabcentral/fileexchange/59264-matlab-functions-to-facilitate-simple-cells-and-matrix-interactions)
I was a bit disappointed by the limitations of containers.Map so I developed those containers. There's a list and a map.

They do not provide all the functionality you will find on java/C++ classes and they lack iterators but they are still more versatile that what is provided by Matlab.

These classes will work with any Matlab object which implement a CompareTo method. Currently there's no enforcement of this condition so the class instance will fail during usage but not at the construction.

The key point of these classes is that they will work with java objects as long as they implement Comparable<T>.
To make this easier, I included a Generic Key.java file which you can compile then instantiate into Matlab.

The usage of this Key.java class is fully optional but it enforce that the actual item you are using as a key (as a java.lang.String) implements Comparable<T>. The class will not return an instance if it's not the case.
If someone has ideas about how this class could handle Matlab objects, I could make an update.

引用

Zangdaarr (2024). Generics (Java & Matlab objects) List and Map for Matlab (https://www.mathworks.com/matlabcentral/fileexchange/59266-generics-java-matlab-objects-list-and-map-for-matlab), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2014b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersSoftware Development Tools についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0