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