Example #1
0
 protected void setResultDescription(String resultDescription) {
   String oldDescription = this.resultDescription;
   if (!ObjectUtil.equals(resultDescription, oldDescription)) {
     this.resultDescription = resultDescription;
     fireEvent();
   }
 }
  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    }

    if (obj != null && obj.getClass() == getClass()) {
      CDOIDObjectLongWithClassifierImpl that = (CDOIDObjectLongWithClassifierImpl) obj;
      return ObjectUtil.equals(classifierRef, that.classifierRef)
          && getLongValue() == that.getLongValue();
    }

    return false;
  }
Example #3
0
 protected boolean isConfig(Config config) {
   return ObjectUtil.equals(getRepositoryConfig(), config) //
       || ObjectUtil.equals(getSessionConfig(), config) //
       || ObjectUtil.equals(getModelConfig(), config);
 }
 @Override
 public int hashCode() {
   int hashCode = classifierRef.hashCode() ^ ObjectUtil.hashCode(getLongValue());
   return getClass().hashCode() ^ hashCode;
 }