@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof FeatureStateModel)) { return false; } FeatureStateModel that = (FeatureStateModel) obj; return Objects.equal(feature, that.feature); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof Entry == false) { return false; } Entry that = (Entry) obj; return Objects.equal(key, that.key); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof AbstractJcrTreeNode == false) return false; AbstractJcrTreeNode that = (AbstractJcrTreeNode) obj; return Objects.equal(nodeModel, that.nodeModel); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof WorkspaceEntry) return false; WorkspaceEntry that = (WorkspaceEntry) obj; return Objects.equal(id, that.id); } }
@Override public boolean equals(final Object obj) { if (obj instanceof SpringBeanLocator) { SpringBeanLocator other = (SpringBeanLocator)obj; return beanTypeName.equals(other.beanTypeName) && Objects.equal(beanName, other.beanName); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj instanceof JndiObjectLocator) { JndiObjectLocator other = (JndiObjectLocator) obj; return beanType.equals(other.beanType) && Objects.equal(beanName, other.beanName); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj instanceof JavaEEBeanLocator) { JavaEEBeanLocator other = (JavaEEBeanLocator) obj; return beanType.equals(other.beanType) && Objects.equal(beanName, other.beanName); } return false; }
@Override public boolean accept(FeedbackMessage message) { return Objects.equal(component, message.getReporter()); } }
@Override public boolean accept(FeedbackMessage message) { return Objects.equal(component, message.getReporter()); } }
/** * @see org.apache.wicket.feedback.IFeedbackMessageFilter#accept(org.apache.wicket.feedback.FeedbackMessage) */ public boolean accept(FeedbackMessage message) { return Objects.equal(component, message.getReporter()); } }
/** * @see org.apache.wicket.feedback.IFeedbackMessageFilter#accept(org.apache.wicket.feedback.FeedbackMessage) */ public boolean accept(FeedbackMessage message) { return Objects.equal(component, message.getReporter()); } }
@Override public boolean accept(FeedbackMessage message) { final Component reporter = message.getReporter(); return reporter != null && (container.contains(reporter, true) || Objects.equal(container, reporter)); } }
@Override public boolean accept(FeedbackMessage message) { final Component reporter = message.getReporter(); return reporter != null && (container.contains(reporter, true) || Objects.equal(container, reporter)); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof Model == false) { return false; } Model that = (Model) obj; return Objects.equal(getObject(), that.getObject()); }
@Override public boolean isEnabled() { BrixNode myNode = item.getModelObject(); BrixNode selectedNode = currentNode.getObject(); if (selectedNode != null) { return !Objects.equal(myNode.getIdentifier(), selectedNode.getIdentifier()); } else { return true; } } };
@Override public void validate(Form<?> form) { // we have a choice to validate the type converted values or the raw // input values, we validate the raw input final FormComponent<?> formComponent1 = components[0]; final FormComponent<?> formComponent2 = components[1]; if (!Objects.equal(formComponent1.getInput(), formComponent2.getInput())) { error(formComponent2); } }
@Override public void validate(Form<?> form) { // we have a choice to validate the type converted values or the raw // input values, we validate the raw input final FormComponent<?> formComponent1 = components[0]; final FormComponent<?> formComponent2 = components[1]; if (!Objects.equal(formComponent1.getInput(), formComponent2.getInput())) { error(formComponent2); } }
public EventSource getEventSource(String id) throws EventSourceNotFoundException { for (EventSource source : calendar.getConfig().getEventSources()) { if (Objects.equal(id, source.getUuid())) { return source; } } throw new EventSourceNotFoundException("Event source with uuid: " + id + " not found"); }
@Override protected boolean match(Component component, ActionPerformedEvent<?> event, IEvent<?> wicketEvent) { if(component instanceof AbstractWidget && event.getCommand().isChangingDisplayMode()) { AbstractWidget<?> widget = (AbstractWidget<?>)component; return Objects.equal(widget.getDashboardPanel().getDashboardDocument(), event.getObject()); } else return false; }