Search this API

y.base
Interface DataAcceptor

All Known Subinterfaces:
DataMap, EdgeMap, NodeMap
All Known Implementing Classes:
DataAcceptorAdapter, EdgeMapAdapter, Maps.HighPerformanceBoolMap, Maps.HighPerformanceDoubleMap, Maps.HighPerformanceIntMap, Maps.HighPerformanceObjectMap, NodeMapAdapter

public interface DataAcceptor

A general interface for setting data. A data acceptor associates data with data holders. It constitutes a write-only view on particular data.

 

Method Summary
 void set(java.lang.Object dataHolder, java.lang.Object value)
          Sets an object value associated with the given data holder.
 void setBool(java.lang.Object dataHolder, boolean value)
          Sets a boolean value associated with the given data holder.
 void setDouble(java.lang.Object dataHolder, double value)
          Sets a double value associated with the given data holder.
 void setInt(java.lang.Object dataHolder, int value)
          Sets an integer value associated with the given data holder.
 

Method Detail

set

void set(java.lang.Object dataHolder,
         java.lang.Object value)
Sets an object value associated with the given data holder. This method may throw an UnsupportedOperationException.


setInt

void setInt(java.lang.Object dataHolder,
            int value)
Sets an integer value associated with the given data holder. This method may throw an UnsupportedOperationException.


setDouble

void setDouble(java.lang.Object dataHolder,
               double value)
Sets a double value associated with the given data holder. This method may throw an UnsupportedOperationException.


setBool

void setBool(java.lang.Object dataHolder,
             boolean value)
Sets a boolean value associated with the given data holder. This method may throw an UnsupportedOperationException.


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