/** * Test whether two IDs are equal to one another. * * @param first * the first ID. Must not be <code>null</code>. * @param second * the second ID. Must not be <code>null</code>. * @return <code>true</code> if this ID is equal to the given ID. * <code>false</code> otherwise. */ protected boolean testIDEquals(BaseID first, BaseID second) { // First check that namespaces are the same and non-null Namespace sn = second.getNamespace(); if (sn == null || !this.equals(sn)) return false; return first.namespaceEquals(second); }
/** * Test whether two IDs are equal to one another. * * @param first * the first ID. Must not be <code>null</code>. * @param second * the second ID. Must not be <code>null</code>. * @return <code>true</code> if this ID is equal to the given ID. * <code>false</code> otherwise. */ protected boolean testIDEquals(BaseID first, BaseID second) { // First check that namespaces are the same and non-null Namespace sn = second.getNamespace(); if (sn == null || !this.equals(sn)) return false; return first.namespaceEquals(second); }