verinec.netsim.util.tables
Class AddressTable.Entry
java.lang.Object
verinec.netsim.util.tables.AddressTable.Entry
- All Implemented Interfaces:
- Map.Entry
- Direct Known Subclasses:
- RoutingTable.Entry
- Enclosing class:
- AddressTable
protected class AddressTable.Entry
- extends Object
- implements Map.Entry
a entry with an address as key, an address as associated value and an
associated creation time.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
address1
private IAddress address1
address2
private IAddress address2
creation_time
private double creation_time
AddressTable.Entry
public AddressTable.Entry(IAddress address1,
IAddress address2,
double creation_time)
- creates a new AddressTable Entry
- Parameters:
address1 - the key addressaddress2 - the address associated to the keycreation_time - the creation time
getKey
public Object getKey()
- Specified by:
getKey in interface Map.Entry
- See Also:
Map.Entry.getKey()
getTime
public double getTime()
- gets the time value when the entry was created
- Returns:
- the time value when the entry was created
getValue
public Object getValue()
- Specified by:
getValue in interface Map.Entry
- See Also:
Map.Entry.getValue()
setValue
public Object setValue(Object arg0)
- Specified by:
setValue in interface Map.Entry
- See Also:
Map.Entry.setValue(java.lang.Object)