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

net.intelie.liverig.witsml.objects.LogDateTimeIndex Maven / Gradle / Ivy

The newest version!
package net.intelie.liverig.witsml.objects;

import com.google.common.base.Strings;

import java.util.Objects;

public class LogDateTimeIndex extends LogRange {
    private String startDateTimeIndex;
    private String endDateTimeIndex;

    public String getStartDateTimeIndex() {
        return startDateTimeIndex;
    }

    public void setStartDateTimeIndex(String startDateTimeIndex) {
        this.startDateTimeIndex = startDateTimeIndex;
    }

    public String getEndDateTimeIndex() {
        return endDateTimeIndex;
    }

    public void setEndDateTimeIndex(String endDateTimeIndex) {
        this.endDateTimeIndex = endDateTimeIndex;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        LogDateTimeIndex index = (LogDateTimeIndex) o;
        return Objects.equals(startDateTimeIndex, index.startDateTimeIndex) &&
                Objects.equals(endDateTimeIndex, index.endDateTimeIndex);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), startDateTimeIndex, endDateTimeIndex);
    }

    @Override
    public boolean isEmpty() {
        return super.isEmpty() && Strings.isNullOrEmpty(startDateTimeIndex) && Strings.isNullOrEmpty(endDateTimeIndex);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy