@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ( isManaged() ? 1231 : 1237 ); return result; }
@Override public boolean equals( final Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !(obj instanceof PluginRelationship) ) { return false; } final PluginRelationship other = (PluginRelationship) obj; return isManaged() == other.isManaged(); }
public AbstractSimpleProjectRelationship( final ProjectRelationship<R, T> relationship ) { this.sources.addAll( relationship.getSources() ); this.declaring = new SimpleProjectVersionRef( relationship.getDeclaring() ); this.pomLocation = relationship.getPomLocation(); this.index = relationship.getIndex(); this.managed = relationship.isManaged(); this.inherited = relationship.isInherited(); this.mixin = relationship.isMixin(); this.type = relationship.getType(); this.target = cloneTarget( relationship.getTarget() ); }
@Override public boolean equals( final Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof DependencyRelationship ) ) { return false; } final DependencyRelationship other = (DependencyRelationship) obj; return isManaged() == other.isManaged(); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ( isManaged() ? 1231 : 1237 ); return result; }
if ( !super.equals( obj ) )
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ( isManaged() ? 1231 : 1237 ); result = prime * result + ( ( plugin == null ) ? 0 : plugin.hashCode() ); return result; }