@Override public int hashCode() { return skinDocument.hashCode(); }
@Override public int hashCode() { return colorThemeDocument.hashCode(); }
@Override public int hashCode(Object x) throws HibernateException { if (DocumentReference.class.isInstance(x)) { DocumentReference reference = (DocumentReference) x; return reference.hashCode(); } return 0; }
@Override public int hashCode(Object x) throws HibernateException { if (DocumentReference.class.isInstance(x)) { DocumentReference reference = (DocumentReference) x; return reference.hashCode(); } return 0; }
/** * {@inheritDoc} */ public int hashCode() { return getDocumentReference().hashCode(); } }
@Override public int hashCode() { return this.getDocument().hashCode(); }
@Override public int hashCode() { return this.getDocumentReference().hashCode(); }
/** * Constructor. * * @param documentReference the document on which the event happened * @param type the type of event * @param userReference the user that triggered the event * @param version the version of the document after the event happened on it * @param date the date of the event */ public WatchListEvent(DocumentReference documentReference, String type, DocumentReference userReference, String version, Date date) { this.documentReference = documentReference; this.type = type; this.authorReference = userReference; this.version = version; this.date = date; this.events = new ArrayList<>(); this.events.add(this); int hash = 3; if (ActivityEventType.UPDATE.equals(type)) { hashCode = 42 * hash + documentReference.hashCode() + type.hashCode(); } else { hashCode = 42 * hash + documentReference.hashCode() + type.hashCode() + date.hashCode(); } }