Search this API

y.util
Class EdgeMapAdapter

java.lang.Object
  extended by y.util.EdgeMapAdapter
All Implemented Interfaces:
DataAcceptor, DataMap, DataProvider, EdgeMap

public abstract class EdgeMapAdapter
extends java.lang.Object
implements EdgeMap

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

 

Constructor Summary
EdgeMapAdapter()
           
 
Method Summary
 java.lang.Object get(java.lang.Object edge)
          Returns the value bound to the given edge.
 boolean getBool(java.lang.Object edge)
          Returns the boolean value bound to the given edge.
 double getDouble(java.lang.Object edge)
          Returns the double value bound to the given edge.
 int getInt(java.lang.Object edge)
          Returns the integer value bound to the given edge.
 void set(java.lang.Object edge, java.lang.Object value)
          Associates the given value to with the given edge.
 void setBool(java.lang.Object edge, boolean value)
          Associates the given boolean value to with the given edge.
 void setDouble(java.lang.Object edge, double value)
          Associates the given double value to with the given edge.
 void setInt(java.lang.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(java.lang.Object edge,
                java.lang.Object value)
Associates the given value to with the given edge.

Specified by:
set in interface DataAcceptor
Specified by:
set in interface EdgeMap

get

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

Specified by:
get in interface DataProvider
Specified by:
get in interface EdgeMap
Returns:
null

setBool

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

Specified by:
setBool in interface DataAcceptor
Specified by:
setBool in interface EdgeMap

getBool

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

Specified by:
getBool in interface DataProvider
Specified by:
getBool in interface EdgeMap
Precondition:
The value must have been associated to the given edge by a call to setBool.
Returns:
false

setDouble

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

Specified by:
setDouble in interface DataAcceptor
Specified by:
setDouble in interface EdgeMap

getDouble

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

Specified by:
getDouble in interface DataProvider
Specified by:
getDouble in interface EdgeMap
Precondition:
The value must have been associated to the given edge by a call to setDouble.
Returns:
0.0d

setInt

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

Specified by:
setInt in interface DataAcceptor
Specified by:
setInt in interface EdgeMap

getInt

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

Specified by:
getInt in interface DataProvider
Specified by:
getInt in interface EdgeMap
Precondition:
The value must have been associated to the given edge by a call to setInt.
Returns:
0

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