y.util
Class EdgeMapAdapter

java.lang.Object
  |
  +--y.util.EdgeMapAdapter
All Implemented Interfaces:
DataAcceptor, DataProvider, EdgeMap

public abstract class EdgeMapAdapter
extends Object
implements EdgeMap

This class is an empty abstract implementation of the EdgeMap interface.


Constructor Summary
EdgeMapAdapter()
           
 
Method Summary
 Object get(Object edge)
          Returns the value bound to the given edge.
 boolean getBool(Object edge)
          Returns the boolean value bound to the given edge.
 double getDouble(Object edge)
          Returns the double value bound to the given edge.
 int getInt(Object edge)
          Returns the integer value bound to the given edge.
 void set(Object edge, Object value)
          Associates the given value to with the given edge.
 void setBool(Object edge, boolean value)
          Associates the given boolean value to with the given edge.
 void setDouble(Object edge, double value)
          Associates the given double value to with the given edge.
 void setInt(Object edge, int value)
          Associates the given integer value to with the given edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeMapAdapter

public EdgeMapAdapter()
Method Detail

set

public void set(Object edge,
                Object value)
Associates the given value to with the given edge.

Specified by:
set in interface EdgeMap

get

public Object get(Object edge)
Returns the value bound to the given edge.

Specified by:
get in interface EdgeMap
Returns:
null

setBool

public void setBool(Object edge,
                    boolean value)
Associates the given boolean value to with the given edge.

Specified by:
setBool in interface EdgeMap

getBool

public boolean getBool(Object edge)
Returns the boolean value bound to the given edge.

Precondition: The value must have been associated to the given edge by a call to setBool.

Specified by:
getBool in interface EdgeMap
Returns:
false

setDouble

public void setDouble(Object edge,
                      double value)
Associates the given double value to with the given edge.

Specified by:
setDouble in interface EdgeMap

getDouble

public double getDouble(Object edge)
Returns the double value bound to the given edge.

Precondition: The value must have been associated to the given edge by a call to setDouble.

Specified by:
getDouble in interface EdgeMap
Returns:
0.0d

setInt

public void setInt(Object edge,
                   int value)
Associates the given integer value to with the given edge.

Specified by:
setInt in interface EdgeMap

getInt

public int getInt(Object edge)
Returns the integer value bound to the given edge.

Precondition: The value must have been associated to the given edge by a call to setInt.

Specified by:
getInt in interface EdgeMap
Returns:
0

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003