de.jiac.micro.core.io
Interface IAddress

All Known Subinterfaces:
IMulticastAddress, IUnicastAddress

public interface IAddress

The IAddress interface for all existing addresses. This interface adopts two kinds of addresses: UNICAST and MULTICAST.

Author:
Vladimir Schöner

Field Summary
static byte MULTICAST
          A constant holding the value for the multicast address.
static byte UNICAST
          A constant holding the value for a unicast address.
 
Method Summary
 byte getType()
          Returns the byte value for the address type.
 String toString()
          Returns the string representation for the address.
 

Field Detail

UNICAST

static final byte UNICAST
A constant holding the value for a unicast address.

See Also:
Constant Field Values

MULTICAST

static final byte MULTICAST
A constant holding the value for the multicast address.

See Also:
Constant Field Values
Method Detail

toString

String toString()
Returns the string representation for the address.

Overrides:
toString in class Object
Returns:
the string representation for the address.

getType

byte getType()
Returns the byte value for the address type.

Returns:
the value for the given address.


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.