com.kolibrifx.plovercrest.performance.tools.serialization.PriceVariant Maven / Gradle / Ivy
/*
* Copyright (c) 2010-2017, KolibriFX AS. Licensed under the Apache License, version 2.0.
*/
package com.kolibrifx.plovercrest.performance.tools.serialization;
import com.kolibrifx.napo.base.Param;
import com.kolibrifx.napo.base.Timestamp;
public class PriceVariant implements ExampleVariant {
private final long timestamp;
private final double price;
public PriceVariant(@Param("Timestamp") final long timestamp, @Param("Price") final double price) {
this.timestamp = timestamp;
this.price = price;
}
@Override
@Timestamp
public long getTimestamp() {
return timestamp;
}
public double getPrice() {
return price;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy