@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((checkStateMethod == null) ? 0 : checkStateMethod.hashCode());
   result = prime * result + ((classUnderTest == null) ? 0 : classUnderTest.hashCode());
   long temp;
   temp = Double.doubleToLongBits(delta);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   result = prime * result + (hasDelta ? 1231 : 1237);
   result = prime * result + (isStaticMethod ? 1231 : 1237);
   result = prime * result + ((methodUnderTest == null) ? 0 : methodUnderTest.hashCode());
   result = prime * result + ((packageName == null) ? 0 : packageName.hashCode());
   result = prime * result + ((returnType == null) ? 0 : returnType.hashCode());
   result = prime * result + ((singletonMethod == null) ? 0 : singletonMethod.hashCode());
   result =
       prime * result + ((constructorArguments == null) ? 0 : constructorArguments.hashCode());
   result = prime * result + ((methodParameters == null) ? 0 : methodParameters.hashCode());
   result = prime * result + ((imports == null) ? 0 : imports.hashCode());
   result =
       prime * result
           + ((classToMockInstanceNameMap == null) ? 0 : classToMockInstanceNameMap.hashCode());
   result =
       prime * result + ((jMockInvokeSequenceMap == null) ? 0 : jMockInvokeSequenceMap.hashCode());
   return result;
 }
Esempio n. 2
1
  @Override
  public int hashCode() {
    if (isReadonly()) {
      if (cachedHashCode == -1) {
        cachedHashCode = configs.hashCode();
      }

      return cachedHashCode;
    }

    return configs.hashCode();
  }
Esempio n. 3
1
  /**
   * This operation returns the hash value of the Polygon.
   *
   * @return
   *     <p>The hash of the Object.
   */
  @Override
  public int hashCode() {

    // Hash based on super's hashCode.
    int hash = super.hashCode();

    // Add local hashes.
    hash = 31 * hash + vertices.hashCode();
    hash = 31 * hash + edges.hashCode();
    hash = 31 * hash + edgeProperties.hashCode();
    hash = 31 * hash + polygonProperties.hashCode();

    return hash;
  }
Esempio n. 4
0
 @Override
 public int hashCode() {
   int result = name.hashCode();
   result = 31 * result + (color != null ? color.hashCode() : 0);
   result = 31 * result + (tasks != null ? tasks.hashCode() : 0);
   return result;
 }
 @Override
 public int hashCode() {
   final int shift = 5;
   int result = category.hashCode();
   result = result << shift + goodsName.hashCode();
   return result;
 }
Esempio n. 6
0
 public int hashCode() {
   if (mAtomicParts == null) {
     return mData.hashCode();
   } else {
     return mData.hashCode() + mAtomicParts.hashCode();
   }
 }
 @Override
 public int hashCode() {
   int result = super.hashCode();
   result = 31 * result + (excludeDays != null ? excludeDays.hashCode() : 0);
   result = 31 * result + (dataSorted != null ? dataSorted.hashCode() : 0);
   return result;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + elementaryMessageID;
   result = prime * result + ((variableParts == null) ? 0 : variableParts.hashCode());
   return result;
 }
Esempio n. 9
0
 /**
  * このオブジェクトのハッシュ値を返す。
  *
  * @return このオブジェクトのハッシュ値
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + kind.hashCode();
   result = prime * result + values.hashCode();
   return result;
 }
 /** Returns a hash code value for this object. */
 @Override
 public int hashCode() {
   return Float.floatToIntBits(getBoost())
       ^ slop
       ^ termArraysHashCode()
       ^ positions.hashCode()
       ^ 0x4AC65113;
 }
Esempio n. 11
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + id;
   result = prime * result + ((indexes == null) ? 0 : indexes.hashCode());
   return result;
 }
 /** Given the name of a file decide whether its a proper properties file and if so load it */
 public int inspect() {
   int cf = 0;
   String[] flist = cdir.list();
   // scoping trouble?
   ArrayList<ConfigProperties> review = new ArrayList<ConfigProperties>();
   for (int i = 0; i < flist.length; i++) {
     String pfn = cdir.getAbsolutePath() + "/" + flist[i];
     if (ConfigProperties.validatePropFileName(pfn)) {
       ConfigProperties cp = new ConfigProperties(pfn);
       review.add(cp);
     }
   }
   // rely on collection compareto using element hashcodes
   cf = cprops.hashCode() - review.hashCode();
   if (cf != 0) cprops = review;
   return cf;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((arrayName == null) ? 0 : arrayName.hashCode());
   result = prime * result + ((elementType == null) ? 0 : elementType.hashCode());
   result = prime * result + ((sizeList == null) ? 0 : sizeList.hashCode());
   return result;
 }
 @Override
 public int hashCode() {
   if (hashCache != null) return hashCache;
   int result = super.hashCode();
   final int prime = 31;
   result = (prime * result) + ((params == null) ? 0 : params.hashCode());
   hashCache = result;
   return result;
 }
Esempio n. 15
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((assignedTags == null) ? 0 : assignedTags.hashCode());
   result = prime * result + ((objectClass == null) ? 0 : objectClass.hashCode());
   result = prime * result + ((objectId == null) ? 0 : objectId.hashCode());
   return result;
 }
Esempio n. 16
0
 /**
  * ************************************************************************* * * Standard hashCode
  * *
  */
 public int hashCode() {
   int retval =
       id_.hashCode()
           + srcNameKey_.hashCode()
           + typeKey_.hashCode()
           + proxySign_.hashCode()
           + annotations_.hashCode();
   retval += (proxyForKey_ == null) ? 0 : proxyForKey_.hashCode();
   return (retval);
 }
Esempio n. 17
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = super.hashCode();
   result = prime * result + numberOfVms;
   result = prime * result + ((plugged == null) ? 0 : plugged.hashCode());
   result = prime * result + ((vmEntityType == null) ? 0 : vmEntityType.hashCode());
   result = prime * result + ((vmNames == null) ? 0 : vmNames.hashCode());
   return result;
 }
Esempio n. 18
0
 /* (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + high;
   result = prime * result + low;
   result = prime * result + ((name == null) ? 0 : name.hashCode());
   result = prime * result + ((runners == null) ? 0 : runners.hashCode());
   return result;
 }
Esempio n. 19
0
 /* (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((departureDate == null) ? 0 : departureDate.hashCode());
   result = prime * result + ((destination == null) ? 0 : destination.hashCode());
   result = prime * result + ((flights == null) ? 0 : flights.hashCode());
   result = prime * result + ((origin == null) ? 0 : origin.hashCode());
   return result;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = super.hashCode();
   result = prime * result + Arrays.hashCode(children);
   result = prime * result + ((id == null) ? 0 : id.hashCode());
   result = prime * result + (isOrdered ? 1231 : 1237);
   result = prime * result + (isRoot ? 1231 : 1237);
   result = prime * result + ((subframes == null) ? 0 : subframes.hashCode());
   return result;
 }
Esempio n. 21
0
 @Override
 public int hashCode() {
   int result = super.hashCode();
   result = 31 * result + (http != null ? http.hashCode() : 0);
   result = 31 * result + (lifeCycleListeners != null ? lifeCycleListeners.hashCode() : 0);
   result = 31 * result + (handler != null ? handler.hashCode() : 0);
   result = 31 * result + (stallWarningsGetParam != null ? stallWarningsGetParam.hashCode() : 0);
   result = 31 * result + (stallWarningsParam != null ? stallWarningsParam.hashCode() : 0);
   result = 31 * result + (streamListeners != null ? streamListeners.hashCode() : 0);
   return result;
 }
Esempio n. 22
0
 @Override
 public int hashCode() {
   if (hashCode == 0) {
     int result = 17;
     result = 37 * result + _name.hashCode();
     result = 37 * result + _build.hashCode();
     result = 37 * result + _specs.hashCode();
     result = 37 * result + _stuff.hashCode();
     hashCode = result;
   }
   return hashCode;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + (mAllDay ? 1231 : 1237);
   result = prime * result + ((mAttendeesList == null) ? 0 : getAttendeesString().hashCode());
   result = prime * result + (int) (mCalendarId ^ (mCalendarId >>> 32));
   result = prime * result + ((mDescription == null) ? 0 : mDescription.hashCode());
   result = prime * result + ((mDuration == null) ? 0 : mDuration.hashCode());
   result = prime * result + (int) (mEnd ^ (mEnd >>> 32));
   result = prime * result + (mGuestsCanInviteOthers ? 1231 : 1237);
   result = prime * result + (mGuestsCanModify ? 1231 : 1237);
   result = prime * result + (mGuestsCanSeeGuests ? 1231 : 1237);
   result = prime * result + (mOrganizerCanRespond ? 1231 : 1237);
   result = prime * result + (mModelUpdatedWithEventCursor ? 1231 : 1237);
   result = prime * result + mCalendarAccessLevel;
   result = prime * result + (mHasAlarm ? 1231 : 1237);
   result = prime * result + (mHasAttendeeData ? 1231 : 1237);
   result = prime * result + (int) (mId ^ (mId >>> 32));
   result = prime * result + (mIsFirstEventInSeries ? 1231 : 1237);
   result = prime * result + (mIsOrganizer ? 1231 : 1237);
   result = prime * result + ((mLocation == null) ? 0 : mLocation.hashCode());
   result = prime * result + ((mOrganizer == null) ? 0 : mOrganizer.hashCode());
   result = prime * result + ((mOriginalAllDay == null) ? 0 : mOriginalAllDay.hashCode());
   result = prime * result + (int) (mOriginalEnd ^ (mOriginalEnd >>> 32));
   result = prime * result + ((mOriginalSyncId == null) ? 0 : mOriginalSyncId.hashCode());
   result = prime * result + (int) (mOriginalId ^ (mOriginalEnd >>> 32));
   result = prime * result + (int) (mOriginalStart ^ (mOriginalStart >>> 32));
   result = prime * result + ((mOriginalTime == null) ? 0 : mOriginalTime.hashCode());
   result = prime * result + ((mOwnerAccount == null) ? 0 : mOwnerAccount.hashCode());
   result = prime * result + ((mReminders == null) ? 0 : mReminders.hashCode());
   result = prime * result + ((mRrule == null) ? 0 : mRrule.hashCode());
   result = prime * result + mSelfAttendeeStatus;
   result = prime * result + mOwnerAttendeeId;
   result = prime * result + (int) (mStart ^ (mStart >>> 32));
   result = prime * result + ((mSyncAccount == null) ? 0 : mSyncAccount.hashCode());
   result = prime * result + ((mSyncAccountType == null) ? 0 : mSyncAccountType.hashCode());
   result = prime * result + ((mSyncId == null) ? 0 : mSyncId.hashCode());
   result = prime * result + ((mTimezone == null) ? 0 : mTimezone.hashCode());
   result = prime * result + ((mTimezone2 == null) ? 0 : mTimezone2.hashCode());
   result = prime * result + ((mTitle == null) ? 0 : mTitle.hashCode());
   result = prime * result + (mAvailability);
   result = prime * result + ((mUri == null) ? 0 : mUri.hashCode());
   result = prime * result + mAccessLevel;
   return result;
 }
Esempio n. 24
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((rowId == null) ? 0 : rowId.hashCode());
   result = prime * result + ((rowETag == null) ? 0 : rowETag.hashCode());
   result =
       prime * result + ((dataETagAtModification == null) ? 0 : dataETagAtModification.hashCode());
   result = prime * result + ((deleted) ? 0 : 1);
   result = prime * result + ((createUser == null) ? 0 : createUser.hashCode());
   result = prime * result + ((lastUpdateUser == null) ? 0 : lastUpdateUser.hashCode());
   result = prime * result + ((rowFilterScope == null) ? 0 : rowFilterScope.hashCode());
   result = prime * result + ((savepointCreator == null) ? 0 : savepointCreator.hashCode());
   result = prime * result + ((formId == null) ? 0 : formId.hashCode());
   result = prime * result + ((locale == null) ? 0 : locale.hashCode());
   result = prime * result + ((savepointType == null) ? 0 : savepointType.hashCode());
   result = prime * result + ((savepointTimestamp == null) ? 0 : savepointTimestamp.hashCode());
   result = prime * result + ((orderedColumns == null) ? 0 : orderedColumns.hashCode());
   return result;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((arrayBlockingQueue == null) ? 0 : arrayBlockingQueue.hashCode());
   result = prime * result + ((arrayDeque == null) ? 0 : arrayDeque.hashCode());
   result = prime * result + ((arrayList == null) ? 0 : arrayList.hashCode());
   result = prime * result + ((bar == null) ? 0 : bar.hashCode());
   result = prime * result + ((blockingDeque == null) ? 0 : blockingDeque.hashCode());
   result = prime * result + ((blockingQueue == null) ? 0 : blockingQueue.hashCode());
   result = prime * result + ((collection == null) ? 0 : collection.hashCode());
   result =
       prime * result + ((concurrentLinkedQueue == null) ? 0 : concurrentLinkedQueue.hashCode());
   result =
       prime * result + ((concurrentSkipListSet == null) ? 0 : concurrentSkipListSet.hashCode());
   result =
       prime * result + ((copyOnWriteArrayList == null) ? 0 : copyOnWriteArrayList.hashCode());
   result =
       prime * result + ((copyOnWriteArraySet == null) ? 0 : copyOnWriteArraySet.hashCode());
   result = prime * result + ((deque == null) ? 0 : deque.hashCode());
   result = prime * result + ((hashSet == null) ? 0 : hashSet.hashCode());
   result =
       prime * result + ((linkedBlockingDeque == null) ? 0 : linkedBlockingDeque.hashCode());
   result =
       prime * result + ((linkedBlockingQueue == null) ? 0 : linkedBlockingQueue.hashCode());
   result = prime * result + ((linkedHashSet == null) ? 0 : linkedHashSet.hashCode());
   result = prime * result + ((linkedList == null) ? 0 : linkedList.hashCode());
   result = prime * result + ((list == null) ? 0 : list.hashCode());
   result = prime * result + ((name == null) ? 0 : name.hashCode());
   result = prime * result + ((navigableSet == null) ? 0 : navigableSet.hashCode());
   result =
       prime * result + ((priorityBlockingQueue == null) ? 0 : priorityBlockingQueue.hashCode());
   result = prime * result + ((priorityQueue == null) ? 0 : priorityQueue.hashCode());
   result = prime * result + ((queue == null) ? 0 : queue.hashCode());
   result = prime * result + ((set == null) ? 0 : set.hashCode());
   result = prime * result + ((sortedSet == null) ? 0 : sortedSet.hashCode());
   result = prime * result + ((stack == null) ? 0 : stack.hashCode());
   result = prime * result + ((treeSet == null) ? 0 : treeSet.hashCode());
   result = prime * result + ((vector == null) ? 0 : vector.hashCode());
   return result;
 }
Esempio n. 26
0
 /** Required by Hibernate */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((blockId == null) ? 0 : blockId.hashCode());
   result = prime * result + configRev;
   result = prime * result + ((directionId == null) ? 0 : directionId.hashCode());
   result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
   result = prime * result + (exactTimesHeadway ? 1231 : 1237);
   result = prime * result + ((headsign == null) ? 0 : headsign.hashCode());
   result = prime * result + (noSchedule ? 1231 : 1237);
   result = prime * result + ((route == null) ? 0 : route.hashCode());
   result = prime * result + ((routeId == null) ? 0 : routeId.hashCode());
   result = prime * result + ((routeShortName == null) ? 0 : routeShortName.hashCode());
   result = prime * result + ((scheduledTimesList == null) ? 0 : scheduledTimesList.hashCode());
   result = prime * result + ((serviceId == null) ? 0 : serviceId.hashCode());
   result = prime * result + ((shapeId == null) ? 0 : shapeId.hashCode());
   result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
   result = prime * result + ((travelTimes == null) ? 0 : travelTimes.hashCode());
   result = prime * result + ((tripId == null) ? 0 : tripId.hashCode());
   result = prime * result + ((tripPattern == null) ? 0 : tripPattern.hashCode());
   result = prime * result + ((tripShortName == null) ? 0 : tripShortName.hashCode());
   return result;
 }
 /** Returns a hash code value for this object. */
 @Override
 public int hashCode() {
   return super.hashCode() ^ slop ^ termArraysHashCode() ^ positions.hashCode();
 }
Esempio n. 28
0
 @Override
 public int hashCode() {
   int result = objects.hashCode();
   result = 31 * result + indexes.hashCode();
   return result;
 }
Esempio n. 29
0
 public int hashCode() {
   return list.hashCode();
 }
 /**
  * Compute a hash code for hashing us
  *
  * @return the hash code
  */
 @Override
 public int hashCode() {
   return Float.floatToIntBits(getBoost())
       + Float.floatToIntBits(tieBreakerMultiplier)
       + disjuncts.hashCode();
 }