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