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

io.github.mivek.model.trend.validity.BeginningValidity Maven / Gradle / Ivy

package io.github.mivek.model.trend.validity;

import io.github.mivek.internationalization.Messages;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Class representing a validity with start day, start hour and start minutes.
 * @author mivek
 */
public class BeginningValidity extends AbstractValidity {
    /** the minutes. */
    private Integer startMinutes;

    /**
     * @return the startMinutes
     */
    public Integer getStartMinutes() {
        return startMinutes;
    }

    /**
     * @param pStartMinutes the startMinutes to set
     */
    public void setStartMinutes(final Integer pStartMinutes) {
        startMinutes = pStartMinutes;
    }

    @Override
    public final String toString() {
        return new ToStringBuilder(this).
                appendSuper(super.toString()).
                append(Messages.getInstance().getString("ToString.start.minute"), startMinutes).
                toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy