com.ibm.jusb
Class UsbDescriptorImp

java.lang.Object
  extended by com.ibm.jusb.UsbDescriptorImp
All Implemented Interfaces:
UsbDescriptor
Direct Known Subclasses:
UsbConfigurationDescriptorImp, UsbDeviceDescriptorImp, UsbEndpointDescriptorImp, UsbInterfaceDescriptorImp, UsbStringDescriptorImp

public class UsbDescriptorImp
extends java.lang.Object
implements UsbDescriptor

UsbDescriptor implementation.

Author:
Dan Streetman

Constructor Summary
UsbDescriptorImp(byte bLength, byte bDescriptorType)
           
 
Method Summary
 byte bDescriptorType()
          Get this descriptor's bDescriptorType.
 byte bLength()
          Get this descriptor's bLength.
 boolean equals(java.lang.Object object)
          Compare this to an Object.
 int hashCode()
          Get the hashcode.
 java.lang.String toString()
          Get a String representing this.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsbDescriptorImp

public UsbDescriptorImp(byte bLength,
                        byte bDescriptorType)
Method Detail

bLength

public byte bLength()
Get this descriptor's bLength.

Specified by:
bLength in interface UsbDescriptor
Returns:
This descriptor's bLength.
See Also:
This is unsigned.

bDescriptorType

public byte bDescriptorType()
Get this descriptor's bDescriptorType.

Specified by:
bDescriptorType in interface UsbDescriptor
Returns:
This descriptor's bDescriptorType.
See Also:
This is unsigned.

equals

public boolean equals(java.lang.Object object)
Compare this to an Object.

Overrides:
equals in class java.lang.Object
Parameters:
object - The Object to compare to.
Returns:
If this is equal to the Object.

hashCode

public int hashCode()
Get the hashcode.

This is implemented using the String's hashCode.

Overrides:
hashCode in class java.lang.Object
Returns:
The hashcode.

toString

public java.lang.String toString()
Get a String representing this.

Overrides:
toString in class java.lang.Object
Returns:
A String representing this.