|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.CapabilityBlock
public class CapabilityBlock
The capability block, basically a vector of UUID's.
Constructor Summary | |
---|---|
CapabilityBlock()
Creates a new empty capability block. |
|
CapabilityBlock(int flag,
String uuid)
Creates a new capability block. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines if two capability blocks are equal. |
static ArrayList |
getCapabilities()
Get the value of capabilities. |
static CapabilityBlock |
getCapabilityBlock(byte[] b)
Get the capability uuid given its data. |
static CapabilityBlock |
getCapabilityBlock(int flag)
Get the capability uuid given its flag. |
byte[] |
getData()
Get the value of data. |
int |
getFlag()
Get the value of flag. |
String |
getUUID()
Get the value of uuid. |
int |
hashCode()
Return the hash code of this capability block. |
void |
setData(byte[] data)
Set the value of data. |
void |
setFlag(int flag)
Set the value of flag. |
void |
setUUID(String uuid)
Set the value of uuid. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapabilityBlock()
public CapabilityBlock(int flag, String uuid)
flag
- the flaguuid
- the UUID stringMethod Detail |
---|
public int getFlag()
public void setFlag(int flag)
flag
- Value to assign to flag.public String getUUID()
public void setUUID(String uuid)
uuid
- Value to assign to uuid.public byte[] getData()
public void setData(byte[] data)
data
- Value to assign to data.public boolean equals(Object obj)
equals
in class Object
obj
- the capability block to test
public int hashCode()
hashCode
in class Object
public static CapabilityBlock getCapabilityBlock(int flag)
flag
- the capability flag
public static CapabilityBlock getCapabilityBlock(byte[] b)
b
- the capability data
public static ArrayList getCapabilities()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |