@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } CompartmentReference other = (CompartmentReference) obj; if (compartment == null) { if (other.compartment != null) { return false; } } else if (!compartment.equals(other.compartment)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } Dimension other = (Dimension) obj; if (arrayDimension != other.arrayDimension) { return false; } if (size == null) { if (other.size != null) { return false; } } else if (!size.equals(other.size)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } PossibleSpeciesFeatureValue other = (PossibleSpeciesFeatureValue) obj; if (numericValue == null) { if (other.numericValue != null) { return false; } } else if (!numericValue.equals(other.numericValue)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } MemberConstraint other = (MemberConstraint) obj; if (distinctAttribute == null) { if (other.distinctAttribute != null) { return false; } } else if (!distinctAttribute.equals(other.distinctAttribute)) { return false; } if (identicalAttribute == null) { if (other.identicalAttribute != null) { return false; } } else if (!identicalAttribute.equals(other.identicalAttribute)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } SpeciesTypeComponentIndex other = (SpeciesTypeComponentIndex) obj; if (component == null) { if (other.component != null) { return false; } } else if (!component.equals(other.component)) { return false; } if (identifyingParent == null) { if (other.identifyingParent != null) { return false; } } else if (!identifyingParent.equals(other.identifyingParent)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } SpeciesFeatureChange other = (SpeciesFeatureChange) obj; if (productSpeciesFeature == null) { if (other.productSpeciesFeature != null) { return false; } } else if (!productSpeciesFeature.equals(other.productSpeciesFeature)) { return false; } if (reactantSpeciesFeature == null) { if (other.reactantSpeciesFeature != null) { return false; } } else if (!reactantSpeciesFeature.equals(other.reactantSpeciesFeature)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } Member other = (Member) obj; if (idRef == null) { if (other.idRef != null) { return false; } } else if (!idRef.equals(other.idRef)) { return false; } if (metaIdRef == null) { if (other.metaIdRef != null) { return false; } } else if (!metaIdRef.equals(other.metaIdRef)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } SpeciesTypeInstance other = (SpeciesTypeInstance) obj; if (compartmentReference == null) { if (other.compartmentReference != null) { return false; } } else if (!compartmentReference.equals(other.compartmentReference)) { return false; } if (speciesType == null) { if (other.speciesType != null) { return false; } } else if (!speciesType.equals(other.speciesType)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } InSpeciesTypeBond other = (InSpeciesTypeBond) obj; if (bindingSite1 == null) { if (other.bindingSite1 != null) { return false; } } else if (!bindingSite1.equals(other.bindingSite1)) { return false; } if (bindingSite2 == null) { if (other.bindingSite2 != null) { return false; } } else if (!bindingSite2.equals(other.bindingSite2)) { return false; } return true; }
return true; if (!super.equals(obj)) { return false;
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } SpeciesFeatureType other = (SpeciesFeatureType) obj; if (listOfPossibleSpeciesFeatureValues == null) { if (other.listOfPossibleSpeciesFeatureValues != null) { return false; } } else if (!listOfPossibleSpeciesFeatureValues.equals(other.listOfPossibleSpeciesFeatureValues)) { return false; } if (occur == null) { if (other.occur != null) { return false; } } else if (!occur.equals(other.occur)) { return false; } return true; }
return true; if (!super.equals(obj)) { return false;
return true; if (!super.equals(obj)) { return false;
@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { SimpleSpeciesReference ssr = (SimpleSpeciesReference) object; equals &= isSetSpecies() == ssr.isSetSpecies(); if (equals && isSetSpecies()) { equals &= ssr.getSpecies().equals(speciesID); } } return equals; }
@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { AbstractNamedSBaseWithUnit v = (AbstractNamedSBaseWithUnit) object; equals &= v.isSetUnits() == isSetUnits(); if (equals && isSetUnits()) { equals &= v.getUnits().equals(getUnits()); } } return equals; }
@Override public boolean equals(Object object) { // Check all child elements recursively in super class first: boolean equals = super.equals(object); if (equals) { // Cast is possible because super class checks the class attributes Reaction r = (Reaction) object; equals &= r.isSetFast() == isSetFast(); if (equals && isSetFast()) { equals &= r.fast.equals(fast); } equals &= r.isSetReversible() == isSetReversible(); if (equals && isSetReversible()) { equals &= r.reversible.equals(reversible); } equals &= r.getCompartment().equals(getCompartment()); } return equals; }
@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { Model m = (Model) object;
@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { Output o = (Output) object; equals &= o.isSetQualitativeSpecies() == isSetQualitativeSpecies(); if (equals && isSetQualitativeSpecies()) { equals &= (o.getQualitativeSpecies().equals(getQualitativeSpecies())); } equals &= o.isSetTransitionEffect() == isSetTransitionEffect(); if (equals && isSetTransitionEffect()) { equals &= (o.getTransitionEffect().equals(getTransitionEffect())); } equals &= o.isSetOutputLevel() == isSetOutputLevel(); if (equals && isSetOutputLevel()) { equals &= o.getLevel()==getLevel(); } } return equals; }
@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { QualitativeSpecies qs = (QualitativeSpecies) object; equals &= qs.isSetConstant() == isSetConstant(); if (equals && isSetConstant()) { equals &= (qs.getConstant() == getConstant()); } equals &= qs.isSetCompartment() == isSetCompartment(); if (equals && isSetCompartment()) { equals &= qs.getCompartment().equals(getCompartment()); } equals &= qs.isSetInitialLevel() == isSetInitialLevel(); if (equals && isSetInitialLevel()) { equals &= qs.getInitialLevel() == getInitialLevel(); } equals &= qs.isSetMaxLevel() == isSetMaxLevel(); if (equals && isSetMaxLevel()) { equals &= qs.getMaxLevel() == getMaxLevel(); } } return equals; }
@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { Input i = (Input) object; equals &= i.isSetQualitativeSpecies() == isSetQualitativeSpecies(); if (equals && isSetQualitativeSpecies()) { equals &= (i.getQualitativeSpecies().equals(getQualitativeSpecies())); } equals &= i.isSetTransitionEffect() == isSetTransitionEffect(); if (equals && isSetTransitionEffect()) { equals &= (i.getTransitionEffect().equals(getTransitionEffect())); } equals &= i.isSetThresholdLevel() == isSetThresholdLevel(); if (equals && isSetThresholdLevel()) { equals &= i.getThresholdLevel() == getThresholdLevel(); } equals &= i.isSetSign() == isSetSign(); if (equals && isSetSign()) { equals &= (i.getSign() == getSign()); } } return equals; }