1 6 package com.hp.hpl.jena.graph.query.regexptrees; 7 8 9 13 public class NoneOf extends RegexpTree 14 { 15 protected String impossibles; 16 17 public NoneOf( String impossibles ) 18 { this.impossibles = impossibles; } 19 20 public boolean equals( Object other ) 21 { return other instanceof NoneOf && impossibles.equals( ((NoneOf) other).impossibles ); } 22 23 public int hashCode() 24 { return impossibles.hashCode(); } 25 26 public String toString() 27 { return "<none '" + impossibles + "'>"; } 28 } 29 30 31 | Popular Tags |