|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thingmagic.TagData
public class TagData
A class to represent RFID tags. Instances of this class are immutable.
Constructor Summary | |
---|---|
TagData(byte[] epc)
Construct a tag object representing the specified EPC |
|
TagData(byte[] epc,
byte[] crc)
Construct a tag object representing the specified EPC |
|
TagData(java.lang.String epc)
Construct a tag object representing the specified EPC (no CRC) |
|
TagData(java.lang.String epc,
java.lang.String crc)
Construct a tag object representing the specified EPC and CRC |
Method Summary | |
---|---|
byte[] |
crcBytes()
Returns this tag's CRC. |
byte[] |
epcBytes()
Returns this tag's EPC. |
java.lang.String |
epcString()
Returns a hexadecimal string version of this tag's EPC. |
boolean |
equals(java.lang.Object obj)
Compares the specified Object with this TagData for equality. |
TagProtocol |
getProtocol()
Returns the protocol of this tag. |
int |
hashCode()
Returns the hash code value for this TagData. |
boolean |
matches(TagData t)
Test if a tag matches this filter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TagData(byte[] epc)
epc
- the bytes representing the EPCpublic TagData(byte[] epc, byte[] crc)
epc
- the bytes representing the EPCcrc
- the bytes representing the CRCpublic TagData(java.lang.String epc, java.lang.String crc)
epc
- a hexadecimal string representing the EPCcrc
- a hexadecimal string representing the CRCpublic TagData(java.lang.String epc)
epc
- a hexadecimal string representing the EPCMethod Detail |
---|
public java.lang.String epcString()
public byte[] epcBytes()
public byte[] crcBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public TagProtocol getProtocol()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the Object to be compared for equality with this TagData
public int hashCode()
hashCode
in class java.lang.Object
public boolean matches(TagData t)
TagFilter
matches
in interface TagFilter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |