net.intelie.pipes.AbstractRawEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pipes-api Show documentation
Show all versions of pipes-api Show documentation
Intelie Pipes' API classes and interfaces
package net.intelie.pipes;
import net.intelie.pipes.util.Iterables;
public abstract class AbstractRawEvent implements RawEvent {
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof RawEvent)) return false;
RawEvent rows = (RawEvent) o;
return Iterables.equals(this, rows);
}
@Override
public int hashCode() {
int result = 0;
for (Object obj : this) {
result *= 31;
result ^= obj.hashCode();
}
return result;
}
@Override
public String toString() {
return "[" + Iterables.join(", ", this) + "]";
}
}