public Declaration createDeclaration(Declaration clone) { return new DeclarationImpl(clone); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (!(obj instanceof AssignedDeclaration)) return false; AssignedDeclaration other = (AssignedDeclaration) obj; if (spec == null) { if (other.spec != null) return false; } else if (!spec.equals(other.spec)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((spec == null) ? 0 : spec.hashCode()); return result; }
/** * This declaration type is not about to be compared * using precise conditions */ public int compareTo(Declaration o) { if(this.isImportant() && ! o.isImportant()) return 1; else if(o.isImportant() && ! this.isImportant()) return -1; return 0; }
/** * Shallow copy constructor * @param clone Declaration to share term values with */ protected DeclarationImpl(Declaration clone) { this.property = clone.getProperty(); this.important = clone.isImportant(); this.replaceAll(clone.asList()); }
@Override public int compareTo(Declaration other) { if( !(other instanceof AssignedDeclaration)) return super.compareTo(other); AssignedDeclaration o = (AssignedDeclaration) other; int res = getOriginOrder() - o.getOriginOrder(); if (res == 0) return this.spec.compareTo(o.spec); else return res; }
@Override public String toString() { return this.toString(0); }
/** * This declaration type is not about to be compared * using precise conditions */ public int compareTo(Declaration o) { if(this.isImportant() && ! o.isImportant()) return 1; else if(o.isImportant() && ! this.isImportant()) return -1; return 0; }
/** * Shallow copy constructor * @param clone Declaration to share term values with */ protected DeclarationImpl(Declaration clone) { this.property = clone.getProperty(); this.important = clone.isImportant(); this.source = new Source(clone.getSource()); this.replaceAll(clone.asList()); }
@Override public int compareTo(Declaration other) { if( !(other instanceof AssignedDeclaration)) return super.compareTo(other); AssignedDeclaration o = (AssignedDeclaration) other; int res = getOriginOrder() - o.getOriginOrder(); if (res == 0) return this.spec.compareTo(o.spec); else return res; }
@Override public String toString() { return this.toString(0); }
public Declaration createDeclaration() { return new DeclarationImpl(); }
/** * This declaration type is not about to be compared * using precise conditions */ public int compareTo(Declaration o) { if(this.isImportant() && ! o.isImportant()) return 1; else if(o.isImportant() && ! this.isImportant()) return -1; return 0; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((spec == null) ? 0 : spec.hashCode()); return result; }
/** * Shallow copy constructor * @param clone Declaration to share term values with */ protected DeclarationImpl(Declaration clone) { this.property = clone.getProperty(); this.important = clone.isImportant(); this.source = new Source(clone.getSource()); this.replaceAll(clone.asList()); }
@Override public int compareTo(Declaration other) { if( !(other instanceof AssignedDeclaration)) return super.compareTo(other); AssignedDeclaration o = (AssignedDeclaration) other; int res = getOriginOrder() - o.getOriginOrder(); if (res == 0) return this.spec.compareTo(o.spec); else return res; }
@Override public String toString() { return this.toString(0); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (!(obj instanceof AssignedDeclaration)) return false; AssignedDeclaration other = (AssignedDeclaration) obj; if (spec == null) { if (other.spec != null) return false; } else if (!spec.equals(other.spec)) return false; return true; }
public Declaration createDeclaration(Declaration clone) { return new DeclarationImpl(clone); }
/** * This declaration type is not about to be compared * using precise conditions */ public int compareTo(Declaration o) { if(this.isImportant() && ! o.isImportant()) return 1; else if(o.isImportant() && ! this.isImportant()) return -1; return 0; }