1 6 package com.hp.hpl.jena.graph.query.regexptrees; 7 8 13 14 public class OneOrMore extends Repeated 15 { 16 public OneOrMore( RegexpTree operand ) 17 { super( operand ); } 18 19 public int hashCode() 20 { return operand.hashCode(); } 21 22 public boolean equals( Object x ) 23 { return x instanceof OneOrMore && operand.equals( ((OneOrMore) x).operand ); } 24 25 public String toString() 26 { return "<plus " + operand.toString() + ">"; } 27 } 28 29 | Popular Tags |