| Direct-BT
    2.3.1
    Direct-BT - Direct Bluetooth Programming. | 
A 48 bit EUI-48 sub-identifier, see EUI48. More...
| Public Member Functions | |
| EUI48Sub () | |
| Construct empty unset instance.  More... | |
| EUI48Sub (final String str) throws IllegalArgumentException | |
| Construct a sub EUI48 via given string representation.  More... | |
| EUI48Sub (final byte stream[], final int pos, final int len_) | |
| Construct instance via given source byte array.  More... | |
| final boolean | equals (final Object obj) | 
| final int | hashCode () | 
| void | clearHash () | 
| Method clears the cached hash value.  More... | |
| void | clear () | 
| Method clears the underlying byte array b and sets length to zero.  More... | |
| int | indexOf (final EUI48Sub needle) | 
| Finds the index of given EUI48Sub needle within this instance haystack.  More... | |
| boolean | contains (final EUI48Sub needle) | 
| Returns true, if given EUI48Sub needle is contained in this instance haystack.  More... | |
| final String | toString () | 
| Static Public Member Functions | |
| static boolean | scanEUI48Sub (final String str, final EUI48Sub dest, final StringBuilder errmsg) | 
| Fills given EUI48Sub instance via given string representation.  More... | |
| static int | indexOf (final byte haystack_b[], final int haystack_length, final byte needle_b[], final int needle_length) | 
| Find index of needle within haystack.  More... | |
| Public Attributes | |
| final byte | b [] | 
| The EUI48 sub-address, always 6 bytes reserved.  More... | |
| int | length | 
| The actual length in bytes of the EUI48 sub-address, less or equal 6 bytes.  More... | |
| Static Public Attributes | |
| static final EUI48Sub | ANY_DEVICE = new EUI48Sub( new byte[] { (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00 }, 0, 6 ) | 
| EUI48Sub MAC address matching any device, i.e.  More... | |
| static final EUI48Sub | ALL_DEVICE = new EUI48Sub( new byte[] { (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff }, 0, 6 ) | 
| EUI48Sub MAC address matching all device, i.e.  More... | |
| static final EUI48Sub | LOCAL_DEVICE = new EUI48Sub( new byte[] { (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff }, 0, 6 ) | 
| EUI48Sub MAC address matching local device, i.e.  More... | |
A 48 bit EUI-48 sub-identifier, see EUI48.
Definition at line 31 of file EUI48Sub.java.
| org.direct_bt.EUI48Sub.EUI48Sub | ( | ) | 
Construct empty unset instance.
Definition at line 104 of file EUI48Sub.java.
| org.direct_bt.EUI48Sub.EUI48Sub | ( | final String | str | ) | throws IllegalArgumentException | 
Construct a sub EUI48 via given string representation.
Implementation is consistent with toString().
| str | a string of less or equal of 17 characters representing less or equal of 6 bytes as hexadecimal numbers separated via colon, e.g. "01:02:03:0A:0B:0C"  "01:02:03:0A"  ":"  ""  | 
| IllegalArgumentException | if given string doesn't comply with EUI48 | 
Definition at line 119 of file EUI48Sub.java.
| org.direct_bt.EUI48Sub.EUI48Sub | ( | final byte | stream[], | 
| final int | pos, | ||
| final int | len_ | ||
| ) | 
Construct instance via given source byte array.
Definition at line 128 of file EUI48Sub.java.
| void org.direct_bt.EUI48Sub.clear | ( | ) | 
Method clears the underlying byte array b and sets length to zero.
The cached hash value is also cleared.
Definition at line 184 of file EUI48Sub.java.
| void org.direct_bt.EUI48Sub.clearHash | ( | ) | 
| boolean org.direct_bt.EUI48Sub.contains | ( | final EUI48Sub | needle | ) | 
Returns true, if given EUI48Sub needle is contained in this instance haystack.
If the sub is zero, true is returned.
Definition at line 246 of file EUI48Sub.java.
| final boolean org.direct_bt.EUI48Sub.equals | ( | final Object | obj | ) | 
Definition at line 138 of file EUI48Sub.java.
| final int org.direct_bt.EUI48Sub.hashCode | ( | ) | 
Implementation uses a lock-free volatile cache.
Definition at line 161 of file EUI48Sub.java.
| 
 | static | 
Find index of needle within haystack.
| haystack_b | haystack data | 
| haystack_length | haystack length | 
| needle_b | needle data | 
| needle_length | needle length | 
Definition at line 199 of file EUI48Sub.java.
| int org.direct_bt.EUI48Sub.indexOf | ( | final EUI48Sub | needle | ) | 
Finds the index of given EUI48Sub needle within this instance haystack.
| needle | 
Definition at line 236 of file EUI48Sub.java.
| 
 | static | 
Fills given EUI48Sub instance via given string representation.
Implementation is consistent with toString().
| str | a string of less or equal of 17 characters representing less or equal of 6 bytes as hexadecimal numbers separated via colon, e.g. "01:02:03:0A:0B:0C"  "01:02:03:0A"  ":"  ""  | 
| dest | EUI48Sub to set its value | 
| errmsg | error parsing message if returning false | 
Definition at line 64 of file EUI48Sub.java.
| final String org.direct_bt.EUI48Sub.toString | ( | ) | 
Returns the EUI48 sub-string representation, less or equal 17 characters representing less or equal 6 bytes as upper case hexadecimal numbers separated via colon, e.g.
,
,
,
.
Definition at line 259 of file EUI48Sub.java.
| 
 | static | 
EUI48Sub MAC address matching all device, i.e.
'ff:ff:ff:ff:ff:ff'.
Definition at line 35 of file EUI48Sub.java.
| 
 | static | 
EUI48Sub MAC address matching any device, i.e.
'0:0:0:0:0:0'.
Definition at line 33 of file EUI48Sub.java.
| final byte org.direct_bt.EUI48Sub.b[] | 
The EUI48 sub-address, always 6 bytes reserved.
Definition at line 42 of file EUI48Sub.java.
| int org.direct_bt.EUI48Sub.length | 
The actual length in bytes of the EUI48 sub-address, less or equal 6 bytes.
Definition at line 49 of file EUI48Sub.java.
| 
 | static | 
EUI48Sub MAC address matching local device, i.e.
'0:0:0:ff:ff:ff'.
Definition at line 37 of file EUI48Sub.java.
 1.8.18
 1.8.18