1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.iapi.store.raw.ContainerKey; 25 26 import java.util.Observer ; 27 28 33 34 abstract class ContainerActionOnCommit implements Observer { 35 36 protected ContainerKey identity; 37 38 protected ContainerActionOnCommit(ContainerKey identity) { 39 40 this.identity = identity; 41 } 42 43 public int hashCode() { 44 return identity.hashCode(); 45 } 46 47 55 public boolean equals(Object other) { 56 if (other instanceof ContainerActionOnCommit) { 57 if (!identity.equals(((ContainerActionOnCommit) other).identity)) 58 return false; 59 60 return getClass().equals(other.getClass()); 62 } 63 return false; 64 } 65 } 66 | Popular Tags |