title: How to write gremlin jannusgraph predicate lt, lte, gte etc in java?
body: <p>I am developing java backend over  janusgraph database. </p>
  
  <p><strong>I need to write the below gremlin query in Java</strong>. I know there is a Compare Enum in janusgraph that contains lt, lte ,eq ... but the test function takes two params so I need to know how it is writen in java. </p>
  
  <p><strong>Gremlin syntax:</strong></p>
  
  <pre><code> g.V().hasLabel("person").has("age", lte(29))
  </code></pre>
  
  <p><strong>In Janusgraph I guess !:</strong></p>
  
  <pre><code>  g.V().hasLabel("person").has("age", Compare.lte.test({{XXX}},29))
  </code></pre>
  
  <p>Where {{XXX}} should be replaced by the queried item.</p>
  
  <p>Thanks</p>