the-algorithm/src/java/com/twitter/search/common/relevance/entities/TwitterQuotedMessage.java
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

42 lines
966 B
Java

package com.twitter.search.common.relevance.entities;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* The object for quoted message
*/
public class TwitterQuotedMessage {
private final long quotedStatusId;
private final long quotedUserId;
public TwitterQuotedMessage(long quotedStatusId, long quotedUserId) {
this.quotedStatusId = quotedStatusId;
this.quotedUserId = quotedUserId;
}
public long getQuotedStatusId() {
return quotedStatusId;
}
public long getQuotedUserId() {
return quotedUserId;
}
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}