All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bichromate.core.checkSum Maven / Gradle / Ivy

Go to download

Java, Selenium, Appium, Winium, Extend, and TestNG automated testing framework. Bichromate integrates the best of these frameworks and takes automation to the next level. With Bichromate there is one function call that builds any type of Web,IOS Mobile, Android, and Windows App driver on any platform (Windows, Mac, Linux). From Local web drivers, to SauceLabs, Browserstack, and Selenium grid. Build data driven tests is never easier. Bichromate also gives you built in Factories that, access DBs, Video Capture, FTP, POM Generation, Hilite element.

The newest version!
//LearnCom, Inc.
// Copyright 1998-1999 LearnCom, Inc. All rights reserved.

//NOTICE: All information contained herein or attendant hereto is, and
//remains, the property of LearnCom, Inc. Many of the
//intellectual and technical concepts contained herein are
//proprietary to LearnCom, Inc. and may be covered by U.S. and
//Foreign Patents or Patents Pending, or are protected as trade
//secrets. Any dissemination of this information or
//reproduction of this material is strictly forbidden unless
//prior written permission is obtained from LearnCom, Inc.

//--------------------------------------------------------------------
//Original Author: Ronald M. Jacobs
// Original Date: November 21, 1999
//--------------------------------------------------------------------

/* $History: Checksum.java $
*
* *****************  Version 1  *****************
* User: Rjacobs      Date: 11/22/99   Time: 10:46a
* Created in $/gforce/elearnserver/latest/src/com/gforce/server/util
* Initial check in
*/
package bichromate.core;

public final class checkSum
{
 private checkSum()
 {
 }

 public static int generate(final String string)
 {
     int checksum = 0;
     final int stringLength = string.length();

     for (int index = 0; index < stringLength; index++) {
         checksum = 31*checksum + string.charAt(index);
     }

     return checksum;
 }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy