Source code

    001/*
    002# Licensed Materials - Property of IBM
    003# Copyright IBM Corp. 2015
    004 */
    005package vwap;
    006
    007import java.io.Serializable;
    008
    009import com.ibm.streams.operator.Tuple;
    010
    011public abstract class Ticker implements Serializable {
    012
    013    /**
    014     *
    015     */
    016    private static final long serialVersionUID = 1L;
    017    private final String ticker;
    018
    019    Ticker(Tuple tuple) {
    020        this(tuple.getString("ticker"));
    021    }
    022
    023    Ticker(String ticker) {
    024        this.ticker = ticker;
    025    }
    026
    027    Ticker(Ticker ticker) {
    028        this.ticker = ticker.getTicker();
    029    }
    030
    031    public String getTicker() {
    032        return ticker;
    033    }
    034}