/** * Checks whether two size objects are equal. Two instances * of <code>MachineDescription</code> are considered equal if all components * match but {@link #runtimeValidated}, {@link #isRuntimeValidated()}. * @return <code>true</code> if the two MachineDescription are equal; * otherwise <code>false</code>. */ @Override public final boolean equals(final Object obj) { if (this == obj) { return true; } if ( !(obj instanceof MachineDescription) ) { return false; } final MachineDescription md = (MachineDescription) obj; return pageSizeInBytes == md.pageSizeInBytes && compatible(md); }