FROM- Data type this transformer receives
TO- Type of transformed data
public interface DataTransformer<FROM,TO>
DataObservers. A transformer is set via
SubscriptionBuilder.transform(DataTransformer). Note that a transformer is not required to actually "transform" any data. Technically, it's fine to return the same data it received and just do some processing with it. Threading notes: Note that the transformer is always executed asynchronously. It is OK to perform long lasting operations.
source- data to be transformed
java.lang.Exception- Transformers may throw any exceptions, which can be reacted on via
Available under the Apache License, Version 2.0 - Copyright © 2017 greenrobot.org. All Rights Reserved.