
org.chiknrice.iso.util.Hash Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jen8583 Show documentation
Show all versions of jen8583 Show documentation
A flexible Java ENcoder for ISO-8583 messages
The newest version!
/*
* Copyright (c) 2014 Ian Bondoc
*
* This file is part of Jen8583
*
* Jen8583 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of the License, or(at your option) any later version.
*
* Jen8583 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see
* .
*
*/
package org.chiknrice.iso.util;
/**
* @author Ian Bondoc
*/
public class Hash {
public static int build(Object object, Object... fields) {
int hash = object.getClass().hashCode();
for (Object field : fields) {
if (field != null) {
hash ^= field.hashCode();
}
}
return hash;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy