All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zipwhip.util.SignalContentConverter Maven / Gradle / Ivy

The newest version!
package com.zipwhip.util;

import com.zipwhip.api.signals.Signal;

/**
 * Created with IntelliJ IDEA.
 * User: Michael
 * Date: 10/3/12
 * Time: 1:37 PM
 *
 * Use when u want to convert the signal
 */
public class SignalContentConverter implements Converter{

    private static final SignalContentConverter INSTANCE = new SignalContentConverter();

    @Override
    public T convert(Signal signal) throws Exception {
        return (T)signal.getContent();
    }

    @Override
    public Signal restore(T t) throws Exception {
        return null;
    }

    public static SignalContentConverter getInstance() {
        return INSTANCE;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy