changeset 40:b1036ab80767

Use abstract interfaces
author Chris Cannam
date Fri, 11 Jan 2013 16:37:26 +0000
parents a17756868013
children 544ee975b822
files org/vamp_plugins/Plugin.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/org/vamp_plugins/Plugin.java	Mon Jan 07 22:03:26 2013 +0000
+++ b/org/vamp_plugins/Plugin.java	Fri Jan 11 16:37:26 2013 +0000
@@ -34,8 +34,8 @@
 
 package org.vamp_plugins;
 
-import java.util.TreeMap;
-import java.util.ArrayList;
+import java.util.Map;
+import java.util.List;
 
 /**
  * A Java wrapper for a native-code Vamp plugin. Plugins are obtained
@@ -293,7 +293,7 @@
      * process call.  (These do not necessarily have to fall within
      * the process block, except for OneSamplePerStep outputs.)
      */
-    public TreeMap<Integer, ArrayList<Feature>>
+    public Map<Integer, List<Feature>>
 	process(float[][] inputBuffers,
 		RealTime timestamp) {
 	return process(inputBuffers, 0, timestamp);
@@ -305,7 +305,7 @@
      * avoid potentially having to extract a set of sub-arrays from
      * longer arrays (fiddly in Java).
      */
-    public native TreeMap<Integer, ArrayList<Feature>>
+    public native Map<Integer, List<Feature>>
 	process(float[][] inputBuffers,
 		int offset,
 		RealTime timestamp);
@@ -314,7 +314,7 @@
      * After all blocks have been processed, calculate and return any
      * remaining features derived from the complete input.
      */
-    public native TreeMap<Integer, ArrayList<Feature>>
+    public native Map<Integer, List<Feature>>
 	getRemainingFeatures();
 }