You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Matthias Broecheler (JIRA)" <ji...@apache.org> on 2015/04/10 19:53:14 UTC

[jira] [Created] (TINKERPOP3-626) Better interface for interval constraints

Matthias Broecheler created TINKERPOP3-626:
----------------------------------------------

             Summary: Better interface for interval constraints
                 Key: TINKERPOP3-626
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-626
             Project: TinkerPop 3
          Issue Type: Improvement
          Components: structure
            Reporter: Matthias Broecheler
            Priority: Minor
             Fix For: 3.0.0.GA


In java, one has to specify an interval constraint as:

{{has('age',within,ImmutableList.of(20,30))}}
which is quite ugly compared to the old:
{{between('age',20,30)}}

A vararg overload should be provided that constructs the list or a dedicated method should be considered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)