public final class SapaPort
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static int |
API_LEVEL
API level
|
static android.os.Parcelable.Creator<SapaPort> |
CREATOR |
static int |
INOUT_TYPE_IN
input port of a connection
|
static int |
INOUT_TYPE_OUT
output port of a connection
|
static int |
SIGNAL_TYPE_AUDIO
audio data
|
static int |
SIGNAL_TYPE_MIDI
midi data
|
Constructor and Description |
---|
SapaPort(java.lang.String fullName,
int signalType,
int inOutType)
Constructor of SapaPort information class
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFullName()
Get the full port name.
|
int |
getInOutType()
Get the in-out type
|
java.lang.String |
getName()
Get the port name
|
int |
getSignalType()
Get the signal type
|
int |
hashCode() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int API_LEVEL
public static final int SIGNAL_TYPE_AUDIO
public static final int SIGNAL_TYPE_MIDI
public static final int INOUT_TYPE_IN
public static final int INOUT_TYPE_OUT
public static final android.os.Parcelable.Creator<SapaPort> CREATOR
public SapaPort(java.lang.String fullName, int signalType, int inOutType) throws java.lang.IllegalArgumentException
fullName
- the full port namesignalType
- the signal type of datainOutType
- the InOut type of datajava.lang.IllegalArgumentException
- If the parameter is not validpublic java.lang.String getFullName()
public java.lang.String getName()
public int getSignalType()
public int getInOutType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The Port object to compare.public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written. May
be 0 or PARCELABLE_WRITE_RETURN_VALUE.