@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof ObjectInterval)) { return false; } final ObjectInterval<?> other = (ObjectInterval<?>) obj; return ObjectUtilities.equals(new Object[] { this.startValue, this.endValue }, new Object[] { other.startValue, other.endValue }); }
public static <T> boolean contains(final T[] array, final T object) { for (final T item : array) { if (ObjectUtilities.equals(item, object)) { return true; } } return false; }
public static <T> boolean contains(final T[] array, final T object) { for (final T item : array) { if (ObjectUtilities.equals(item, object)) { return true; } } return false; }
public static <O, T extends O> O[] remove(final O[] source, final T value, final Class<O> clazz) { final List<O> list = new ArrayList<>(); for (final O item : source) { if (ObjectUtilities.equals(value, item)) { continue; } list.add(item); } return toArray(clazz, list); }
@Override public void search(@SuppressWarnings("hiding") final String condition) { if (ObjectUtilities.equals(condition, this.condition)) { return; } this.condition = condition; update(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof IDatabaseSequenceName)) { return false; } final IDatabaseSequenceName other = (IDatabaseSequenceName) obj; return ObjectUtilities.equals(this.catalogName, other.getCatalogName()) // && ObjectUtilities.equals(this.schemaName, other.getSchemaName()) // && ObjectUtilities.equals(this.tableName, other.getSequenceName()); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof IDatabaseTriggerName)) { return false; } final IDatabaseTriggerName other = (IDatabaseTriggerName) obj; return ObjectUtilities.equals(this.catalogName, other.getCatalogName()) // && ObjectUtilities.equals(this.schemaName, other.getSchemaName()) // && ObjectUtilities.equals(this.constraintName, other.getTriggerName()); }
public static <O, T extends O> O[] remove(final O[] source, final T value, final Class<O> clazz) { final List<O> list = new ArrayList<>(); for (final O item : source) { if (ObjectUtilities.equals(value, item)) { continue; } list.add(item); } return toArray(clazz, list); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof MenuDescription)) { return false; } final MenuDescription other = (MenuDescription) obj; return ObjectUtilities.equals(getId(), other.getId()); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof MenuItemGroupDescription)) { return false; } final MenuItemGroupDescription other = (MenuItemGroupDescription) obj; return ObjectUtilities.equals(getId(), other.getId()); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof IValidationResult)) { return false; } final IValidationResult other = (IValidationResult) obj; return this.isValid != other.isValid() && ObjectUtilities.equals(this.message, other.getMessage()); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof ToolBarItemGroupDescription)) { return false; } final ToolBarItemGroupDescription other = (ToolBarItemGroupDescription) obj; return ObjectUtilities.equals(getId(), other.getId()); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof IValidationResult)) { return false; } final IValidationResult other = (IValidationResult) obj; return this.isValid != other.isValid() && ObjectUtilities.equals(this.message, other.getMessage()); }
@Override public boolean equals(final Object obj) { if (obj instanceof IType) { final IType other = (IType) obj; return ObjectUtilities.equals(this.getIdentifier(), other.getIdentifier()); } return false; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof IColorInterval)) { return false; } final IColorInterval other = (IColorInterval) obj; return ObjectUtilities.equals(getMinimumColor(), other.getMinimumColor()) && ObjectUtilities.equals(getMaximumColor(), other.getMaximumColor()); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof ToolBarDescription)) { return false; } final ToolBarDescription other = (ToolBarDescription) obj; return ObjectUtilities.equals(getId(), other.getId()); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof IConnectionDescription)) { return false; } final IConnectionDescription other = (IConnectionDescription) obj; return ObjectUtilities.equals(getURI(), other.getURI()) // && ObjectUtilities.equals(getDataSourceType(), other.getDataSourceType()); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof IColorInterval)) { return false; } final IColorInterval other = (IColorInterval) obj; return ObjectUtilities.equals(getMinimumColor(), other.getMinimumColor()) && ObjectUtilities.equals(getMaximumColor(), other.getMaximumColor()); }
@Override public boolean equals(final Object obj) { if (obj instanceof DefaultPreferences) { final DefaultPreferences other = (DefaultPreferences) obj; return ObjectUtilities.equals(this.preferences.absolutePath(), other.preferences.absolutePath()) && this.preferences.isUserNode() == other.preferences.isUserNode(); } return super.equals(obj); }