Java Code Examples for org.apache.tinkerpop.gremlin.structure.util.ElementHelper#areEqual()
The following examples show how to use
org.apache.tinkerpop.gremlin.structure.util.ElementHelper#areEqual() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlgElement.java From sqlg with MIT License | 5 votes |
@Override public boolean equals(final Object object) { this.sqlgGraph.tx().readWrite(); if (this.sqlgGraph.features().supportsBatchMode() && this.sqlgGraph.tx().isInBatchMode()) { if (this.id() != null && (object instanceof SqlgElement) && ((SqlgElement) object).id() != null) { return ElementHelper.areEqual(this, object); } else { return super.equals(object); } } else { return ElementHelper.areEqual(this, object); } }
Example 2
Source File: HugeEdgeProperty.java From hugegraph with Apache License 2.0 | 5 votes |
@Override public boolean equals(Object obj) { if (!(obj instanceof Property)) { return false; } return ElementHelper.areEqual(this, obj); }
Example 3
Source File: EdgeValueWritable.java From hgraphdb with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object other) { return other instanceof EdgeValueWritable && ElementHelper.areEqual(this.edge, ((EdgeValueWritable) other).getEdge()); }
Example 4
Source File: StarGraph.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object other) { return ElementHelper.areEqual(this, other); }
Example 5
Source File: Neo4JVertex.java From neo4j-gremlin-bolt with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public boolean equals(final Object object) { // ElementHelper.areEqual is implemented on this.id(), handle the case of generated ids return object instanceof Vertex && (id != null ? ElementHelper.areEqual(this, object) : super.equals(object)); }
Example 6
Source File: SqlgVertexProperty.java From sqlg with MIT License | 4 votes |
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 7
Source File: Neo4JEdge.java From neo4j-gremlin-bolt with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public boolean equals(final Object object) { // ElementHelper.areEqual is implemented on this.id(), handle the case of generated ids return object instanceof Edge && (id != null ? ElementHelper.areEqual(this, object) : super.equals(object)); }
Example 8
Source File: Neo4JEdge.java From neo4j-gremlin-bolt with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object object) { return object instanceof Property && ElementHelper.areEqual(this, object); }
Example 9
Source File: TinkerVertexProperty.java From tinkerpop with Apache License 2.0 | 4 votes |
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 10
Source File: ArangoDBVertex.java From arangodb-tinkerpop-provider with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 11
Source File: ReferenceProperty.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 12
Source File: VertexValueWritable.java From hgraphdb with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object other) { return other instanceof VertexValueWritable && ElementHelper.areEqual(this.vertex, ((VertexValueWritable) other).getVertex()); }
Example 13
Source File: BlazeProperty.java From tinkerpop3 with GNU General Public License v2.0 | 4 votes |
/** * Pass through to {@link ElementHelper#areEqual(Property, Object)} */ @Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 14
Source File: AbstractBlazeElement.java From tinkerpop3 with GNU General Public License v2.0 | 4 votes |
/** * Delegates to {@link ElementHelper#areEqual(Element, Object)} */ @Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 15
Source File: Neo4jVertexProperty.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 16
Source File: DetachedProperty.java From tinkerpop with Apache License 2.0 | 4 votes |
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 17
Source File: BitsyElement.java From bitsy with Apache License 2.0 | 4 votes |
@Override public boolean equals(Object object) { return ElementHelper.areEqual(this, object); }
Example 18
Source File: TinkerElement.java From tinkergraph-gremlin with Apache License 2.0 | 4 votes |
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 19
Source File: HadoopVertexProperty.java From tinkerpop with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }
Example 20
Source File: TinkerProperty.java From tinkergraph-gremlin with Apache License 2.0 | 4 votes |
@Override public boolean equals(final Object object) { return ElementHelper.areEqual(this, object); }