java: updated examples to use AbstractList<> for data containers
MODIFY
examples/java/BMA250E_Example.java
examples/java/BMA250E_Example.java
*/
import upm_bma250e.BMA250E;
+import java.util.AbstractList;
+import java.lang.Float;
public class BMA250E_Example
{
@@ -42,7 +44,7 @@ public class BMA250E_Example
// update our values from the sensor
sensor.update();
- upm_bma250e.floatVector dataA = sensor.getAccelerometer();
+ AbstractList<Float> dataA = sensor.getAccelerometer();
System.out.println("Accelerometer x: " + dataA.get(0)
+ " y: " + dataA.get(1)

MODIFY
examples/java/BMC150_Example.java
examples/java/BMC150_Example.java
*/
import upm_bmx055.BMC150;
+import java.util.AbstractList;
+import java.lang.Float;
public class BMC150_Example
{
@@ -40,7 +42,7 @@ public class BMC150_Example
// update our values from the sensor
sensor.update();
- upm_bmx055.floatVector data = sensor.getAccelerometer();
+ AbstractList<Float> data = sensor.getAccelerometer();
System.out.println("Accelerometer x: " + data.get(0)
+ " y: " + data.get(1)

MODIFY
examples/java/BMG160_Example.java
examples/java/BMG160_Example.java
*/
import upm_bmg160.BMG160;
+import java.util.AbstractList;
+import java.lang.Float;
public class BMG160_Example
{
@@ -42,7 +44,7 @@ public class BMG160_Example
// update our values from the sensor
sensor.update();
- upm_bmg160.floatVector data = sensor.getGyroscope();
+ AbstractList<Float> data = sensor.getGyroscope();
System.out.println("Gyroscope x: " + data.get(0)
+ " y: " + data.get(1)

MODIFY
examples/java/BMI055_Example.java
examples/java/BMI055_Example.java
*/
import upm_bmx055.BMI055;
+import java.util.AbstractList;
+import java.lang.Float;
public class BMI055_Example
{
@@ -40,7 +42,7 @@ public class BMI055_Example
// update our values from the sensor
sensor.update();
- upm_bmx055.floatVector data = sensor.getAccelerometer();
+ AbstractList<Float> data = sensor.getAccelerometer();
System.out.println("Accelerometer x: " + data.get(0)
+ " y: " + data.get(1)

MODIFY
examples/java/BMM150_Example.java
examples/java/BMM150_Example.java
*/
import upm_bmm150.BMM150;
+import java.util.AbstractList;
+import java.lang.Float;
public class BMM150_Example
{
@@ -44,7 +46,7 @@ public class BMM150_Example
// update our values from the sensor
sensor.update();
- upm_bmm150.floatVector data = sensor.getMagnetometer();
+ AbstractList<Float> data = sensor.getMagnetometer();
System.out.println("Magnetometer x: " + data.get(0)
+ " y: " + data.get(1)

MODIFY
examples/java/BMX055_Example.java
examples/java/BMX055_Example.java
*/
import upm_bmx055.BMX055;
+import java.util.AbstractList;
+import java.lang.Float;
public class BMX055_Example
{
@@ -40,7 +42,7 @@ public class BMX055_Example
// update our values from the sensor
sensor.update();
- upm_bmx055.floatVector data = sensor.getAccelerometer();
+ AbstractList<Float> data = sensor.getAccelerometer();
System.out.println("Accelerometer x: " + data.get(0)
+ " y: " + data.get(1)

MODIFY
examples/java/LSM303AGR_Example.java
examples/java/LSM303AGR_Example.java
*/
import upm_lsm303agr.LSM303AGR;
+import java.util.AbstractList;
+import java.lang.Float;
public class LSM303AGR_Example
{
@@ -40,7 +42,7 @@ public class LSM303AGR_Example
// update our values from the sensor
sensor.update();
- upm_lsm303agr.floatVector data = sensor.getAccelerometer();
+ AbstractList<Float> data = sensor.getAccelerometer();
System.out.println("Accelerometer x: " + data.get(0)
+ " y: " + data.get(1)

MODIFY
examples/java/LSM303D_Example.java
examples/java/LSM303D_Example.java
*/
import upm_lsm303d.LSM303D;
+import java.util.AbstractList;
+import java.lang.Float;
public class LSM303D_Example
{
@@ -40,7 +42,7 @@ public class LSM303D_Example
// update our values from the sensor
sensor.update();
- upm_lsm303d.floatVector data = sensor.getAccelerometer();
+ AbstractList<Float> data = sensor.getAccelerometer();
System.out.println("Accelerometer x: " + data.get(0)
+ " y: " + data.get(1)

java: updated examples to use AbstractList<> for data containers

Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com>
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>