Patrick Stuedi created CRAIL-75:
-----------------------------------

             Summary: Use method generics in CrailStore to template return 
types for create and lookup
                 Key: CRAIL-75
                 URL: https://issues.apache.org/jira/browse/CRAIL-75
             Project: Apache Crail
          Issue Type: Improvement
            Reporter: Patrick Stuedi
            Assignee: Patrick Stuedi


Example:

public abstract Upcoming<T extends CrailNode> create(String path, 
CrailStorageClass storageClass, CrailLocationClass locationClass, boolean 
enumerable) throws Exception;

 

Eliminates the need for CrailNode to know its subtypes...

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to