Class Tuple


public abstract class Tuple extends Container
This class should be extended to create Tuples.

Any such class may be used as the return type for a method which returns multiple values.

All fields in the Tuple which you wish to be serialized and sent to the remote method should be annotated with the Position annotation, in the order they should appear to DBus.

A Tuple should have generic type parameters, otherwise deserialization may fail.

Example class:
public class MyTuple<A, B> extends Tuple {
     @Position(0)
     private final A firstValue;
     @Position(1)
     private final B secondValue;

     // constructor/getter/setter omitted for brevity
}
Example usage:
public SampleDbusInterface extends DBusInterface {
    MyTuple<String, Integer> getMyTuple();
}
  • Constructor Details

    • Tuple

      public Tuple()