org.securegraph.event.MarkHiddenPropertyEvent Maven / Gradle / Ivy
The newest version!
package org.securegraph.event;
import org.securegraph.Element;
import org.securegraph.Graph;
import org.securegraph.Property;
import org.securegraph.Visibility;
public class MarkHiddenPropertyEvent extends GraphEvent {
private final Element element;
private final Property property;
private final Visibility visibility;
public MarkHiddenPropertyEvent(Graph graph, Element element, Property property, Visibility visibility) {
super(graph);
this.element = element;
this.property = property;
this.visibility = visibility;
}
public Element getElement() {
return element;
}
public Property getProperty() {
return property;
}
public Visibility getVisibility() {
return visibility;
}
@Override
public String toString() {
return "MarkHiddenPropertyEvent{element=" + element + '}';
}
@Override
public int hashCode() {
return getElement().hashCode();
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof MarkHiddenPropertyEvent)) {
return false;
}
MarkHiddenPropertyEvent other = (MarkHiddenPropertyEvent) obj;
return getElement().equals(other.getElement()) && super.equals(obj);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy