@Override public boolean equals( Object obj ){ if( this == obj ) { return true; } if( obj == null ) { return false; } if( !super.equals( obj ) ) { return false; } if( obj.getClass() == this.getClass() ) { StackDockProperty other = (StackDockProperty)obj; if( index != other.index ) return false; return true; } return false; } }
@Override public int hashCode(){ final int prime = 31; int result = super.hashCode(); result = prime * result + index; return result; }
@Override public void setSuccessor( DockableProperty successor ){ super.setSuccessor( successor ); if( backup != null ){ backup.setSuccessor( successor ); } }
@Override public boolean equals( Object obj ){ if( this == obj ) { return true; } if( !super.equals( obj ) ) { return false; } if( obj.getClass() == this.getClass() ) { SplitDockPathProperty other = (SplitDockPathProperty)obj; if( nodes == null ){ if( other.nodes != null ) return false; }else if( !nodes.equals( other.nodes ) ) return false; return true; } return false; }
@Override public int hashCode(){ final int prime = 31; int result = super.hashCode(); result = prime * result + ((nodes == null) ? 0 : nodes.hashCode()); return result; }
@Override public boolean equals( Object obj ){ if( this == obj ) return true; if( !super.equals( obj ) ) return false; if( !(obj instanceof SplitDockProperty) ) return false; SplitDockProperty other = (SplitDockProperty)obj; if( Double.doubleToLongBits( height ) != Double .doubleToLongBits( other.height ) ) return false; if( Double.doubleToLongBits( width ) != Double .doubleToLongBits( other.width ) ) return false; if( Double.doubleToLongBits( x ) != Double.doubleToLongBits( other.x ) ) return false; if( Double.doubleToLongBits( y ) != Double.doubleToLongBits( other.y ) ) return false; return true; } }
@Override public int hashCode(){ final int prime = 31; int result = super.hashCode(); long temp; temp = Double.doubleToLongBits( height ); result = prime * result + (int)(temp ^ (temp >>> 32)); temp = Double.doubleToLongBits( width ); result = prime * result + (int)(temp ^ (temp >>> 32)); temp = Double.doubleToLongBits( x ); result = prime * result + (int)(temp ^ (temp >>> 32)); temp = Double.doubleToLongBits( y ); result = prime * result + (int)(temp ^ (temp >>> 32)); return result; }
@Override public boolean equals( Object obj ){ if (this == obj) return true; if (!super.equals( obj )) return false; if (getClass() != obj.getClass()) return false; FlapDockProperty other = (FlapDockProperty) obj; if (holding != other.holding) return false; if (index != other.index) return false; if (placeholder == null) { if (other.placeholder != null) return false; } else if (!placeholder.equals( other.placeholder )) return false; if (size != other.size) return false; return true; } }
@Override public int hashCode(){ final int prime = 31; int result = super.hashCode(); result = prime * result + (holding ? 1231 : 1237); result = prime * result + index; result = prime * result + ((placeholder == null) ? 0 : placeholder.hashCode()); result = prime * result + size; return result; }
@Override public boolean equals( Object obj ) { if( this == obj ) return true; if( !super.equals( obj ) ) return false; if( getClass() != obj.getClass() ) return false; ScreenDockProperty other = (ScreenDockProperty) obj; if( fullscreen != other.fullscreen ) return false; if( height != other.height ) return false; if( placeholder == null ) { if( other.placeholder != null ) return false; } else if( !placeholder.equals( other.placeholder ) ) return false; if( width != other.width ) return false; if( x != other.x ) return false; if( y != other.y ) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (fullscreen ? 1231 : 1237); result = prime * result + height; result = prime * result + ((placeholder == null) ? 0 : placeholder.hashCode()); result = prime * result + width; result = prime * result + x; result = prime * result + y; return result; }
public boolean equalsNoSuccessor( DockableProperty property ){ DockableProperty successor = this.successor; DockableProperty successorProperty = property.getSuccessor(); try{ this.successor = null; property.setSuccessor( null ); return equals( property ); } finally{ this.successor = successor; property.setSuccessor( successorProperty ); } }