com.sentilla.net
Class Mac64Address

java.lang.Object
  extended by com.sentilla.net.Mac64Address
All Implemented Interfaces:
Addressable, Serializable

public class Mac64Address
extends Object
implements Addressable

Address class for the mote MAC address.

See Also:
Addressable, Address, Serialized Form

Constructor Summary
Mac64Address(long addr)
          Create a new Mac64Address with 64-bit address addr.
 
Method Summary
 boolean equals(Object obj)
          Returns ture if obj is equal to this, false otherwise.
static Mac64Address getLocalAddress()
          Get the local Mac64Address for this platform.
 int hashCode()
          Returns the hash code of the Mac64Address object.
 long longValue()
          Returns the 64-bit address as a long.
static Mac64Address valueOf(long addr)
          Returns a new Mac64Address with 64-bit address addr.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mac64Address

public Mac64Address(long addr)
Create a new Mac64Address with 64-bit address addr.

Parameters:
addr - the 64-bit address
Method Detail

longValue

public long longValue()
Returns the 64-bit address as a long.

Returns:
the long 64-bit address

valueOf

public static Mac64Address valueOf(long addr)
Returns a new Mac64Address with 64-bit address addr.

Parameters:
addr - the 64-bit address
Returns:
a new Mac64Address object

equals

public boolean equals(Object obj)
Returns ture if obj is equal to this, false otherwise.

Specified by:
equals in interface Addressable
Overrides:
equals in class Object
Parameters:
obj - the object to compare for equality
Returns:
true if the object is equal, false otherwise
See Also:
Boolean.hashCode(), Hashtable

hashCode

public int hashCode()
Returns the hash code of the Mac64Address object.

Specified by:
hashCode in interface Addressable
Overrides:
hashCode in class Object
Returns:
the integer hash code
See Also:
Object.equals(java.lang.Object), Hashtable

getLocalAddress

public static Mac64Address getLocalAddress()
Get the local Mac64Address for this platform.

Returns:
the Mac64Address of this platform
See Also:
Addressable


Copyright © 2007 Sentilla Corporation. All Rights Reserved.