Leap Motion Java API Reference  0.8.0
com.leapmotion.leap.DeviceList Class Reference

The DeviceList class represents a list of Device objects. More...

Inherits com.leapmotion.leap.Interface, and Iterable< Device >.

Public Member Functions

DeviceList append (DeviceList other)
 Appends the members of the specifed DeviceList to this DeviceList.
 
int count ()
 Returns the number of devices in this list.
 
 DeviceList ()
 Constructs an empty list of devices.
 
Device get (int index)
 Access a list member by its position in the list.
 
boolean isEmpty ()
 Reports whether the list is empty.
 

Detailed Description

The DeviceList class represents a list of Device objects.

Get a DeviceList object by calling Controller::devices().

Constructor & Destructor Documentation

com.leapmotion.leap.DeviceList.DeviceList ( )

Constructs an empty list of devices.

Member Function Documentation

DeviceList com.leapmotion.leap.DeviceList.append ( DeviceList  other)

Appends the members of the specifed DeviceList to this DeviceList.

Parameters
otherA DeviceList object containing Device objects to append to the end of this DeviceList.
int com.leapmotion.leap.DeviceList.count ( )

Returns the number of devices in this list.

Returns
The number of devices in this list.
Device com.leapmotion.leap.DeviceList.get ( int  index)

Access a list member by its position in the list.

Parameters
indexThe zero-based list position index.
Returns
The Device object at the specified index.
boolean com.leapmotion.leap.DeviceList.isEmpty ( )

Reports whether the list is empty.

Returns
True, if the list has no members.