- use getter methods to access Usb_xxx instance variables

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@220 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
schlaepfer
2006-11-29 11:44:06 +00:00
parent 9ec7c3c53c
commit af40b52734
12 changed files with 670 additions and 297 deletions

View File

@@ -20,15 +20,9 @@ public class Usb_Interface {
*/
public static final int USB_MAXALTSETTING = 128; /* Hard limit */
/**
* Interface descriptors
*/
public Usb_Interface_Descriptor[] altsetting;
private Usb_Interface_Descriptor[] altsetting;
/**
* Number of alternate settings
*/
public int num_altsetting;
private int num_altsetting;
@Override
public String toString() {
@@ -36,4 +30,22 @@ public class Usb_Interface {
+ Integer.toHexString(num_altsetting);
}
/**
* Retuns an array of interface descriptors.<br>
*
* @return an array of interface descriptors
*/
public Usb_Interface_Descriptor[] getAltsetting() {
return altsetting;
}
/**
* Returns the number of alternate settings.<br>
*
* @return the number of alternate settings
*/
public int getNumAltsetting() {
return num_altsetting;
}
}