public interface

IItemBinder

com.artfulbits.aiCharts.Base.IItemBinder<T>
Known Indirect Subclasses

Class Overview

Represents IItemBinder interface.
Sample of custom ChartPoint binder:

  private static class CustomBinder implements IItemBinder<ChartPoint>
  {
    public ChartPoint bind(Object source, ChartPoint existingItem)
    {
      ChartPoint point;      
      // Logic that converts data to point.
      return point; 
    }
  }
 

Summary

Public Methods
abstract T bind(Object source, T existingItem)
Transfers value from source.

Public Methods

public abstract T bind (Object source, T existingItem)

Transfers value from source. Per design, method is used to convert source value to instance of T type.

Parameters
source source item that should be transferred.
existingItem optional existing item that could be used to avoid creation of instance of returning value.
Returns
  • transferred source.