Permalink
Browse files

Elements now return <T> to avoid having to cast.

  • Loading branch information...
1 parent 008cec3 commit 6f9173aaa7be39265ae031b813079f46663b96d5 @BrynCooke BrynCooke committed Mar 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 blueprints-core/src/main/java/com/tinkerpop/blueprints/Element.java
@@ -21,7 +21,7 @@
* @param key the key of the key/value property
* @return the object value related to the string key
*/
- public Object getProperty(String key);
+ public <T> T getProperty(String key);
/**
* Return all the keys associated with the element.
@@ -46,7 +46,7 @@
* @param key the key of the property to remove from the element
* @return the object value associated with that key prior to removal
*/
- public Object removeProperty(String key);
+ public <T> T removeProperty(String key);
/**
* Remove the element from the graph.

0 comments on commit 6f9173a

Please sign in to comment.