コード例 #1
0
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if ((obj == null) || (obj.getClass() != this.getClass())) return false;
   OWLObjectPropertyAssertionAxiomImpl impl = (OWLObjectPropertyAssertionAxiomImpl) obj;
   return (super.equals((OWLPropertyAssertionAxiomImpl) impl)
       && (object != null && impl.object != null && object.equals(impl.object)));
 } // equals
コード例 #2
0
 public int hashCode() {
   int hash = 45;
   hash = hash + super.hashCode();
   hash = hash + (null == object ? 0 : object.hashCode());
   return hash;
 } // hashCode