Package de.willuhn.jameica.hbci.forecast

Source Code of de.willuhn.jameica.hbci.forecast.ForecastProviderSepaSammelUeberweisung

/**********************************************************************
*
* Copyright (c) by Olaf Willuhn
* All rights reserved
*
**********************************************************************/

package de.willuhn.jameica.hbci.forecast;

import java.rmi.RemoteException;

import de.willuhn.jameica.hbci.rmi.SepaSammelUeberweisung;
import de.willuhn.jameica.hbci.schedule.Schedule;
import de.willuhn.jameica.hbci.server.Value;

/**
* Implementierung eines Forecast-Providers fuer SEPA-Sammelueberweisungen.
*/
public class ForecastProviderSepaSammelUeberweisung extends AbstractForecastProvider<SepaSammelUeberweisung>
{
  /**
   * @see de.willuhn.jameica.hbci.forecast.AbstractForecastProvider#createValue(de.willuhn.jameica.hbci.schedule.Schedule)
   */
  Value createValue(Schedule<SepaSammelUeberweisung> schedule) throws RemoteException
  {
    // Negativ-Betrag verwenden
    return new Value(schedule.getDate(),-(schedule.getContext().getSumme().doubleValue()));
  }
}
TOP

Related Classes of de.willuhn.jameica.hbci.forecast.ForecastProviderSepaSammelUeberweisung

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.