@Override
        public boolean equals(final Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null) {
                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            final ApiMethod other = (ApiMethod) obj;
            if (!name.equals(other.name)) {
                return false;
            }
            if (parameterTypes.length != other.parameterTypes.length) {
                return false;
            }
            for (int i = 0; i < parameterTypes.length; ++i) {
                if (parameterTypes[i] != other.parameterTypes[i]) {
                    return false;
                }
            }
            if (returnType != other.returnType) {
                return false;
            }
            return true;
        }
Keep CompositeTaggableItem, SimpleTaggableItem and TaggableSegmentItem in
lockstep.

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
container-search/src/test/java/com/yahoo/prelude/query/TaggableItemsTestCase.java