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

com.easypost.model.SmartrateCollection Maven / Gradle / Ivy

The newest version!
package com.easypost.model;

import java.util.ArrayList;
import java.util.List;

public final class SmartrateCollection {
    private List smartrates;

    /**
     * Get this SmartrateCollection's Smartrate objects.
     *
     * @return List of Smartrate objects.
     */
    public List getSmartrates() {
        return this.smartrates;
    }

    /**
     * Set this SmartrateCollection's Smartrate objects.
     *
     * @param smartrates List of Smartrate objects.
     */
    public void setSmartrates(final List smartrates) {
        this.smartrates = smartrates;
    }

    /**
     * Constructor.
     */
    public SmartrateCollection() {
        this.smartrates = new ArrayList();
    }

    /**
     * Create a SmartrateCollection from a list of rates.
     *
     * @param smartrates List of Smartrate objects
     */
    public SmartrateCollection(final List smartrates) {
        setSmartrates(smartrates);
    }

    /**
     * Add a SmartRate object to this SmartrateCollection.
     *
     * @param rate Rate object
     */
    public void addRate(final Smartrate rate) {
        smartrates.add(rate);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy