@Override public int hashCode() { return ObjectUtilities.hashCode(this.startValue, this.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; }
@Override public ComponentBuilder add(final Component component) { this.components.add(new ObjectPair<>(component, null)); return this; }
@Override public String getText(final T value) { return ObjectUtilities.toString(value, this.nullValueString); }
public ObjectFieldConfigurationBuilder() { this(new ObjectContainer<>()); }
@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 DependencyRelationKey(final String identifier, final RelationType relationType) { this.identifier = identifier; this.relationType = relationType; hashCode = ObjectUtilities.hashCode(this.identifier, this.relationType); }
@Override public ComponentBuilder add(final Component component, final Object constaints) { this.components.add(new ObjectPair<>(component, constaints)); return this; }
public static String toString(final Object object) { return toString(object, (String) null); }
protected Window getOwner() { return this.ownerProvider.get(); }
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; }
@Override public int hashCode() { return ObjectUtilities.hashCode(this.startValue, this.endValue); } }
@Override public void objectChanged() { final T value = this.model.get(); GuiUtilities.invokeLater(new Runnable() { @Override public void run() { LabelUpdater.this.label.setText(LabelUpdater.this.converter.toString(value)); } }); } }
@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 boolean equals(final Object[] os, final Object[] bs) { if (os == bs || (os == null && bs == null)) { return true; } if (os == null || bs == null || os.length != bs.length) { return false; } for (int i = 0; i < bs.length; i++) { if (!equals(os[i], bs[i])) { return false; } } return true; }
public ObjectModel(final T value) { this(true, (t, o) -> ObjectUtilities.equals(t, o), value); }
@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 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 ToolBarDescription)) { return false; } final ToolBarDescription other = (ToolBarDescription) obj; return ObjectUtilities.equals(getId(), other.getId()); }