Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
PgxGraph |
getGraph()
Gets the graph.
|
ID |
getId()
Gets the id.
|
<V> V |
getProperty(java.lang.String propertyName)
Blocking version of
getPropertyAsync(String) . |
<V> PgxFuture<V> |
getPropertyAsync(java.lang.String propertyName)
Gets the value of a property.
|
IdType |
getType()
Gets the type.
|
int |
hashCode() |
java.lang.Object |
serialize()
Method to get the entity as an object that can be serialized for algorithms.
|
<V> void |
setProperty(java.lang.String propertyName, V value)
Blocking version of
setPropertyAsync(String, Object) . |
<V> PgxFuture<java.lang.Void> |
setPropertyAsync(java.lang.String propertyName, V value)
Sets the value of a property.
|
java.lang.String |
toString() |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public PgxGraph getGraph()
public ID getId()
public <V> V getProperty(java.lang.String propertyName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getPropertyAsync(String)
. Calls getPropertyAsync(String)
and waits for the returned PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <V> PgxFuture<V> getPropertyAsync(java.lang.String propertyName)
Property.getValuesAsync()
instead.propertyName
- the property namepublic IdType getType()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object serialize()
public <V> void setProperty(java.lang.String propertyName, V value) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
setPropertyAsync(String, Object)
. Calls setPropertyAsync(String, Object)
and waits for the returned PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <V> PgxFuture<java.lang.Void> setPropertyAsync(java.lang.String propertyName, V value)
Property.setValuesAsync(Map)
instead.propertyName
- the property namevalue
- the value of the propertypublic java.lang.String toString()
toString
in class java.lang.Object