com.greenback.kit.vision.VisionDateTimeInterval Maven / Gradle / Ivy
package com.greenback.kit.vision;
import java.time.Instant;
import java.util.Objects;
public class VisionDateTimeInterval {
private Instant start;
private Instant end;
public Instant getStart() {
return start;
}
public void setStart(Instant start) {
this.start = start;
}
public Instant getEnd() {
return end;
}
public void setEnd(Instant end) {
this.end = end;
}
@Override
public int hashCode() {
int hash = 7;
hash = 79 * hash + Objects.hashCode(this.start);
hash = 79 * hash + Objects.hashCode(this.end);
return hash;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final VisionDateTimeInterval other = (VisionDateTimeInterval) obj;
if (!Objects.equals(this.start, other.start)) {
return false;
}
if (!Objects.equals(this.end, other.end)) {
return false;
}
return true;
}
@Override
public String toString() {
return "[" + start + " -> " + end + ']';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy